Defining output with JCL and PRL SET REPORTID
To define report output with JCL, the ddname of the DD statement must be the same as the value of the SET REPORTID statement or its default (the execution job name).
For example, if the PRL program specified SET REPORTID = 'TRANAB', the name of the DD statement defining the report output must be
If more than one report is created and DD statements are used to define each report output, there must be a corresponding report ID for each named DD allocation. An example follows:
//TRANSUM DD ......
//TRANDET DD ......
The preceding specification allocates the report as specified in the JCL if
- a user-written PRL program that contains a SET REPORTID = 'TRANAB' declaration for the TRANAB allocation exists
- a user-written PRL program that contains a SET REPORTID = 'TRANSUM' declaration for the TRANSUM allocation exists
- a user-written PRL program that contains a SET REPORTID = 'TRANDET' declaration for the TRANDET allocation exists
If a DD allocation for the report in the JCL exists and SET REPORTID is not specified or the value is not the same as the ddname of the report output DD statement, the JCL DD allocation is ignored. When no SET REPORTID declaration exists in a PRL program , the execution job name is the default value.
Related topic