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)
——————————————————————————————————–
In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog
——————————————————————————————————–
You may also like to look at:
Working on Mainframes – Is Change to a different technology necessary |
thanks