EXPORT statement

Purpose: Use the EXPORT statement to make specific JCL symbols available to the job step program. Exported JCL symbols can be accessed during the job execution phase using the JCL Symbol Service (IEFSJSYM) or the JES Symbol Service (IAZSYMBL). Symbols must be set to a value subsequent to the EXPORT statement for the symbol value to be exported.
Note: Do not use the EXPORT statement to override the symbol names on the SYMLIST on an EXPORT statement that is inside a procedure.

JCL symbol values used by a job step program are not resolved until the job step execution phase. JCL symbol values that are used in JCL statements are resolved during the job conversion phase. Consider which phase or phases that symbol resolution is performed when coding JCL. In this section, symbols that are used by the job step program are called exported symbol values. See SYMLIST parameter for more information.

References: IEFSJSYM is documented in z/OS MVS Programming: Authorized Assembler Services Reference EDT-IXG. IAZSYMBL is documented in z/OS JES Application Programming.