Chapter Contents

Previous

Next
QUOTE

QUOTE



Adds double quotation marks to a character value

Category: Character


Syntax
Arguments
Details
Examples

Syntax

QUOTE(argument)

Arguments

argument
is a character value.


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.