>From the "MVS JCL Reference" Manual .... v Each ddname should be unique within the job step. If duplicate ddnames appear in a job step, processing is as follows: – In a JES2 system: The system performs device and space allocation and disposition processing for both DD statements; however, it directs all references to the first DD statement in the step. – In a JES3 system: If both DD statements request JES3 or jointly-managed devices, the system cancels the job during JES3 interpretation. If only one or neither DD statement requests a JES3 or jointly-managed device, the system performs device and space allocation processing for both DD statements; however, it directs all references to the first DD statement in the step.
Regards, Jim On Wed, Jun 7, 2017 at 2:54 PM, George Rodriguez < [email protected]> wrote: > 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* > > -- > > > *Disclaimer: *Under Florida law, e-mail addresses are public records. If > you do not want your e-mail address released in response to a public > records request, do not send electronic mail to this entity. Instead, > contact this office by phone or in writing. > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
