Page 1 of 2

Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 7:34 pm
by parthiban
I've seen the below statement in JCL.
How this will work?


//dd1 DD DSN=abc.cde.oo1,disp=(,calog,del)
space=(trks,(2000,100))
Volume (ABC001,ABC002,ABC003)


Could you please explain me how the jcl will use these volumes.

What if i use below volume parameter?

Volume (ABC001,ABC002,ABC003,ABC001)

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 7:38 pm
by Akatsukami
parthiban wrote:I've seen the below statement in JCL.
How this will work?

Not at all; this isn't even a good approximation of JCL.

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 7:54 pm
by Robert Sample
Have you checked the JCL Reference manual on the VOLUME parameter of the DD statement? If you do so, you will find out that not only is your syntax completely wrong (as Akatsukani indicated) but also that you should not be coding duplicate volume serials. And, as a bonus, you can find out what the purpose of using this construct is!

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 8:54 pm
by expat
And of course if your dataset is SMS managed any specified volumes may be totally ignored by the SMS allocation

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 10:39 pm
by parthiban
I'm Sorry..its

VOL=SER=(ABC001,ABC002,ABC003,ABC004)

Could anybody explain me if i use VOL=SER=(ABC001,ABC002,ABC003,ABC001) what would happen?

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 10:58 pm
by Akatsukami
As you could have determined by writing a job with such a parameter and submitting it with TYPRUN=SCAN, you will get a JCL error.

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Fri Jul 06, 2012 11:01 pm
by Robert Sample
If you did not put the data set under SMS control and if your site is running z/OS 1.8 or higher the error message is IEFC035I DUPLICATE VOLUME SERIAL vvvvvv FOUND

This is something you could easily test yourself. If you don't have the curiosity to test things like this on your own, your career in IT will not be an outstanding one.

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Tue Jul 10, 2012 1:36 am
by parthiban
what if i use OS /390 os version

because my system has OS /390 os .. so my system has over written the data in repeated volume ..

Used volume paramater;
----------------------------
VOL=SER=(ABC001,ABC002,ABC003,ABC001)


i was wondering how this happend..... is it possible ...if i use repeated volume will over written the data in ABC001...i lost some data's....

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Tue Jul 10, 2012 1:52 am
by Akatsukami
OS/390 has been unsupported since 2004! :shock: Is this another case of the management being too cheap and/or the "system programmers" too incompetent to keep the software up-to-date?

Re: Volume (ABC001,ABC002,ABC003)

PostPosted: Tue Jul 10, 2012 2:42 am
by parthiban
ok...,so is it possible in OS/390 ...or any reason for my query