Page 1 of 1

Doubt in dsn

PostPosted: Wed Dec 29, 2010 12:54 pm
by bhanu1225
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 ?

Re: Doubt in dsn

PostPosted: Wed Dec 29, 2010 3:57 pm
by Robert Sample
What does the JCL reference manual tell you?

Re: Doubt in dsn

PostPosted: Wed Dec 29, 2010 5:09 pm
by steve-myers
What happens when you try it?

Re: Doubt in dsn

PostPosted: Wed Dec 29, 2010 6:12 pm
by steve-myers
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?

Re: Doubt in dsn

PostPosted: Thu Dec 30, 2010 3:14 am
by dick scherrer
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.