Character sets - IBM-JCL

To code job control statements, use characters from the character sets and the special characters that have syntactical functions in job control statements.

Table: Character Sets

Character Sets

Table: Special Characters Used in Syntax

Special Characters Used in Syntax

Special Characters in Parameters
The syntax or parameter description indicates if the variable that you code can contain special characters or not. Parameters and subparameters that can contain special characters not used for syntactical functions usually must be enclosed in apostrophes, for example, ACCT='123+456'. Code each apostrophe that is part of the parameter or subparameter as two consecutive apostrophes, for example, code O’NEIL as 'O''NEIL'.

Table lists the parameters that can contain certain special characters without requiring enclosing apostrophes.

Table: Special Characters that Do Not Require Enclosing Apostrophes

Special Characters that Do Not Require Enclosing Apostrophes

Ampersands are used in JCL to indicate the beginning of a symbolic parameter. If a parameter contains an ampersand and you do not want the system to interpret the ampersand as a symbolic parameter, code the ampersand as two consecutive ampersands. For example, code

The system treats double ampersands as a single character. IBM recommends that you use apostrophes to enclose parameters that contain ampersands (other than a DSNAME parameter representing a temporary data set) to further reduce the possibility of error.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM-JCL Topics