Previous Page | Next Page

Formats

$QUOTEw. Format



Writes data values that are enclosed in double quotation marks.
Category: Character
Alignment: left

Syntax
Syntax Description
Details
Examples

Syntax

$QUOTEw.

Syntax Description

w

specifies the width of the output field.

Default: 2 if the length of the variable is undefined. Otherwise, the default is the length of the variable + 2
Range: 2-32767
Tip: Make w wide enough to include the left and right quotation marks.

Details

The following list describes the output that SAS produces when you use the $QUOTEw. format. For examples of these items, see Examples.


Examples

put name $quote20.;

Value of name Results

----+----1
SAS
"SAS"
SAS's
"SAS's"
'ad"verb"'
"'ad""verb""'"
'ad''verb'
"'ad''verb'"
'"ad"''"verb"'
"'""ad""''""verb""'"
deoxyribonucleotide

Previous Page | Next Page | Top of Page