Chapter Contents |
Previous |
Next |
QUOTE |
Category: | Character |
Syntax | |
Arguments | |
Details | |
Examples |
Syntax |
QUOTE(argument) |
Details |
The QUOTE function adds double quotation marks, the default character, to a character value. If double quotation marks are found within the argument, they are doubled in the output.
Examples |
SAS Statements | Results |
---|---|
x='A"B'; y=quote(x); put y; |
"A""B" |
x='A''B'; y=quote(x); put y; |
"A'B" |
x='Paul''s'; y=quote(x); put y; |
"Paul's" |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.