Doubt in dsn



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

Doubt in dsn

Postby bhanu1225 » Wed Dec 29, 2010 12:54 pm

Hi,

In JCL,

I wrote like this,

//out2 dd dsn=xyz.abc.out2.se,
// disp=shr
//out3 dd dsn=*.out2,
// disp=shr,
// vol=ref=*.out2

all these in only one step.
what does out3 dsn refer to ?
bhanu1225
 
Posts: 3
Joined: Thu Nov 25, 2010 4:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Doubt in dsn

 

Re: Doubt in dsn

Postby Robert Sample » Wed Dec 29, 2010 3:57 pm

What does the JCL reference manual tell you?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Doubt in dsn

Postby steve-myers » Wed Dec 29, 2010 5:09 pm

What happens when you try it?
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Doubt in dsn

Postby steve-myers » Wed Dec 29, 2010 6:12 pm

Hint: What happens when you use
//DD1      DD  DISP=SHR,DSN=MY.DATATSET
//DD2      DD  DISP=SHR,DSN=MY.DATATSET


What's the practical difference between
//DD1      DD  DISP=SHR,DSN=MY.DATATSET
//DD2      DD  DISP=SHR,DSN=MY.DATATSET
and
//DD1      DD  DISP=SHR,DSN=MY.DATATSET
//DD2      DD  DISP=SHR,DSN=MY.DATATSET,VOL=REF=*.DD1
Obviously, the second example does not have to a catalog lookup for DD2, but what's the effect in allocation?
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Doubt in dsn

Postby dick scherrer » Thu Dec 30, 2010 3:14 am

Hello and welcome to the forum,

I wrote like this,
Why did you do this?

If you explain what you are trying to accomplish, we can provide relies you may find more useful.

If you have not done so already, you need to download (or set bookmarks to) the JCL Reference Manual and the User Guide.
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


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post