Sunday, September 22, 2019

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)

No comments:

Post a Comment