Skip to main content

INCLUDE Statement

Q. What is the purpose of the INCLUDE statement in JCL?

Q. What types of JCL statements can be stored in an INCLUDE group?

Q. Where can the INCLUDE member be stored? Name at least two options.

Q. What are the placement rules for the INCLUDE statement in a job?

Q. Follow the Instruction:

  • Create a two PDS/PDSE member where one creates a dataset and another delete a dataset DELDATA. Use PGM=IEFBR14 and same dataset to create and delete.
  • Now create a JCL that will include the previously created members 3 time each.
  • Note all the 3 inclusion should create and delete different dataset.
  • Try including a member that contains invalid JCL syntax. What happens when you submit the job?

INTRDR - Internal Reader

Q. What is the function of the Internal Reader (INTRDR) in JCL?

Q. Which utility is commonly used to pass JCL through INTRDR?

Q. What is the purpose of SYSOUT=(*,INTRDR)?

Q. In what situations is INTRDR especially useful?

Q. Write a small job called SUBJOB that runs a dummy program (e.g., IEFBR14) using inline JCL in SYSUT1.

Q. Create a JCL job using IEBGENER that submits SUBJOB using INTRDR.

Q. Modify SUBJOB to dynamically include today's date in a dataset name (e.g., MY.TEST.&SYSDATE) and observe how it's processed when submitted via INTRDR.

Q. Create a loop or batch of 2-3 variations of SUBJOB and submit them in sequence via INTRDR (advanced exercise).