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


Using symbols in batch JCL

z/OS MVS JCL Reference
SA23-1385-00

Start of change

You can code both system symbols and JCL symbols in batch JCL for both jobs and procedures. This information provides examples of how to code system symbols and JCL symbols in batch JCL. For details on how to code system symbols in JCL, and how to define and code JCL symbols in JCL, see Using system symbols and JCL symbols.

Because a batch job can be routed to another system for execution, the symbol values that are resolved when the job is initially converted must also resolve correctly when the job is executed. Therefore, use one of the following methods to use system symbols in batch JCL:
  • Use the SYSTEM= keyword (or your JES2 or JES3 JECL equivalent) to ensure that the batch job executes on a system where the resolved symbol values are valid.
  • Only use symbols that have the same value on every system in your JES complex. For example, you can define a system symbol for the location of your JES complex: thereafter, any batch job that uses that symbol can run on a system in your JES complex.
End of change

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014