Using quotation marks
String
constants, hexadecimal constants, and the picture-specification
are enclosed in either single or double quotation marks.
The following rules apply to quotation marks within a string:
- If the included quotation marks are the same type as those used
to enclose the string, you must enter two quotation marks (that
is, '' or "") for each occurrence
to be included.
- If the included quotation marks are the type not used to enclose
the string, enter only one quotation mark for each instance to be
included. The single occurrence is treated as data.
Examples:
'Shakespeare''s "Hamlet"' is identical to
"Shakespeare's ""Hamlet"""
PICTURE "99V9" is identical to
PICTURE '99V9'
Note:
The syntax diagrams in this book show single quotation
marks. Double quotation marks can be substituted unless otherwise
noted.
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)