Previous topic |
Next topic |
Contact z/OS |
Coding symbols in apostrophes
z/OS MVS JCL Reference
You can code symbols in apostrophes on the following keywords:
When you specify these parameters, the system regards a string beginning with an ampersand (&) inside the apostrophes as a symbol when the following conditions are true:
The system treats a string beginning with an ampersand but not meeting these criteria as a literal sequence of characters. Thus the system does not substitute text for symbols and does not issue error messages.
In the following example, &XXX is a JCL symbol that is defined in the STEP2 EXEC statement. &INPUT is not a symbol because it is not defined.
The ending character for &XXX is the apostrophe.
The result of the example is:
On parameters that are not in the list, the system correctly resolves a symbol that is enclosed in apostrophes when the symbol is immediately preceded by a symbol that is not enclosed in apostrophes. For example, both A and B are substituted correctly in:
A symbol within apostrophes cannot be broken at column 71 and continued to the next line. For example, the following JCL statement is incorrect:
The JCL symbol SYMBOL is not substituted because it must be coded on a single JCL record. A JCL error may result.
Copyright IBM Corporation 1990, 2014