I think it depends on how the program handles it.

Do you get any JCL errors?

Do you get any errors when the program runs like this?

Any details you can share?

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of George Rodriguez
> Sent: Wednesday, June 07, 2017 11:54 AM
> To: [email protected]
> Subject: What Happens with Duplicate DD Cards in JCL?
> 
> I have this programmer that coded the following DD cards in JCL. I'm not 100%
> sure what z/OS v1.13 does with the first DD card for a KSDS VSAM file, but I
> think it gets replaced by the second. Here is an example of the JCL:
> 
> //PRTOUT    DD   SYSOUT=X
> //* VSAM FILES
> //PBGDD     DD   DSN=TM#TEST.FILE
> //PBSF1     DD   DSN=TM#PROD.FILE
> //PBSF1     DD   DSN=TM#TEST.FILE
> 
> My thought, second PBSF1 (test file) replaces PBSF1 (production file).
> 
> Thanks in advance!
> 
> *George Rodriguez*
> *Specialist II - IT Solutions*
> *IT Enterprise Applications*
> *PX - 47652*
> *(561) 357-7652 (office)*
> *(954) 415-7586 (mobile)*
> *School District of Palm Beach County*
> *3348 Forest Hill Blvd.*
> *Room B-251*
> *West Palm Beach, FL. 33406-5869*
> *Florida's Only A-Rated Urban District For Eight Consecutive Years*
> 
> --
> 
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to