DD name usage in JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

DD name usage in JCL

Postby gsatheeesh » Mon Aug 04, 2008 2:34 pm

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
gsatheeesh
 
Posts: 4
Joined: Tue May 27, 2008 7:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: DD name usage in JCL

 

Re: DD name usage in JCL

Postby dick scherrer » Mon Aug 04, 2008 6:57 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: DD name usage in JCL

Postby Bill Dennis » Mon Aug 04, 2008 7:59 pm

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: DD name usage in JCL

Postby gsatheeesh » Tue Aug 05, 2008 12:58 pm

hi dick and bill,

thanks a lot for your timely reply

thanks
satheesh
gsatheeesh
 
Posts: 4
Joined: Tue May 27, 2008 7:04 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post