Executing print data file independently in batch


The Print Data File function can be executed also as a separate step in a batch job by coding the JCL shown in the following figures. Choose the appropriate JCL based on the format in which you want to print the report. For an explanation of the different format options, see the description of the Print format field in Field Descriptions.

Batch JCL for Print Data File in a Formatted Print Format

image2021-3-19_13-54-22.png

Batch JCL for Print Data File in a Vertical Formatted Print Format

image2021-3-19_13-54-42.png

Batch JCL for Print Data File in a Character Print Format

image2021-3-19_13-54-59.png

Batch JCL for Print Data File in a Hexadecimal Print Format

image2021-3-19_13-55-17.png

Data File Print Execution Return Codes

A data file print execution return code (RC) appears in the job output listing. For return codes 4, 8, 12, and 16, an error code and message that indicates the specific problem also appears in the listing. The following table summarizes the return codes.

Print Execution Return Codes

RC

Explanation

Error Description

0

Job ran to completion

None.

4

Job ran to completion

Warnings issued.

8

Job may have ended prematurely

Dataset related error.

12

Job may have ended prematurely

I/O related error.

16

Severe error occurred

System error.

Related topics

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*