Page 1 of 1

DD name usage in JCL

PostPosted: Mon Aug 04, 2008 2:34 pm
by gsatheeesh
Can the same DDname can be used in different steps of a cataloged procedure for representing the dataset name. if so please any one explain how it works

thanks
satheesh g

Re: DD name usage in JCL

PostPosted: Mon Aug 04, 2008 6:57 pm
by dick scherrer
Hello,

A ddname need only be unique within a step. It is quite common to use the same ddname in multiple steps.

There is not much to explain. Every step typically has some number of ddnames. There is no restriction from using the same ddname in multiple steps in the same job. A restriction might be easier to explain - there would be rules to follow. No such restriction exists, so the same ddname may be used repeatedly in a job (not a step).

This is true of cataloged PROCs as well as in-stream jcl.

Re: DD name usage in JCL

PostPosted: Mon Aug 04, 2008 7:59 pm
by Bill Dennis
satheesh,

you may use the same DDname in each step but the program called knows which DDnames it will process. JCL and program must match.

Re: DD name usage in JCL

PostPosted: Tue Aug 05, 2008 12:58 pm
by gsatheeesh
hi dick and bill,

thanks a lot for your timely reply

thanks
satheesh