Tags

JCL – COPY DCB OF INPUT FILE TO OUTPUT FILE

In a JCL step, you want your output file DCB parameters to be same as input file. Assume you are not aware of DCB of input file, how do you achieve getting the output file DCB same as input file.

This feature is called REFERBACK.

Output file DCB can be any of the following

1. DCB=*.INPUT

Please note that the input file DD name is input.

so you should ensure you give correct DDNAME.

2. DCB=YOUR.INPUT.FILE

Provide name of the input file

3. LIKE=YOUR.INPUT.FILE

Provide name of the input file

4. If your input file is in other step, you can use

DCB=(*.STEPNAME.DDNAME)

Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
IDCAMS – Define VSAM ESDS
IDCAMS – Define VSAM RRDS
IDCAMS – Define VSAM KSDS
IDCAMS – Define Alternate Index (AIX)
IDCAMS – Define PATH for Alternate Index
IDCAMS – Define GDG
IDCAMS – Alter GDG, VSAM or PS File
IDCAMS – Delete GDG, VSAM or PS File
IDCAMS – Print VSAM File
IDCAMS
Recovery of Deleted Tape data set (Using Volume Serial)
JCL – SYSIN CONCATENATION
JCL – RUN ONLY ONE MIDDLE STEP (RESTART)
GDG – Delete Just Versions Not BASE
JCL – COPY DCB OF INPUT FILE TO OUTPUT FILE
HOW TO SUBMIT A JOB AUTOMATICALLY AFTER A JOB FINISHES
DELETE ALL GDG VERSIONS WITHOUT DELETING BASE
LISTCAT – BATCH JOB
IEBCOPY Examples
IEBGENER – INTERNAL READER TO SUBMIT
Delete Multiple datasets with same HLQ
JCL INTERVIEW QUESTIONS
JCL TIPS
Advertisements