z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using enclosing apostrophes in OUTPUT parameters

z/OS MVS JCL Reference
SA23-1385-00

Several of the parameters (such as ADDRESS, BUILDING, MAILBCC, and USERDATA) on the OUTPUT JCL statement have variables that can be specified with or without apostrophes. The rules governing the use of apostrophes are as follows:

Valid characters within enclosing apostrophes:

  • A variable enclosed in apostrophes can contain any EBCDIC text character.
  • Enclose a value that contains a blank in apostrophes.
  • To code an apostrophe in a variable, code 2 apostrophes, and enclose the entire delivery address in single apostrophes. For example, you might code the ADDRESS parameter as follows:
       //OUTDS   OUTPUT  ADDRESS='O''DARBY AVE'
  • Each value may optionally be enclosed in apostrophes.
Valid characters without enclosing apostrophes: When a variable is not enclosed in apostrophes, the following characters are valid:
  • Alphanumeric and national (@, $, #) characters
  • Period (.) and asterisk (*); however, an asterisk followed by a period indicates a referral and is not allowed as the start (first and second characters) of the value.
  • Ampersand (&). An ampersand that refers to a symbolic is substituted. Two consecutive ampersands are not substituted, but they will result in a single ampersand as part of the value.
  • Plus sign (+)
  • Hyphen (-)
  • Slash (/)

Null Subparameters: You may code a null subparameter to cause a blank line to appear in the delivery address. Code a comma to indicate the omitted subparameter.

Symbolic Parameters: Do not enclose symbolic parameters within apostrophes. Symbolic parameters enclosed in apostrophes are not resolved for this keyword.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014