Volume (ABC001,ABC002,ABC003)



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

Volume (ABC001,ABC002,ABC003)

Postby parthiban » Fri Jul 06, 2012 7:34 pm

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)
Parthiban jayaraman
mainframe rexxer,
Banglore
parthiban
 
Posts: 66
Joined: Mon Oct 20, 2008 7:54 pm
Location: Bangalore-India
Has thanked: 0 time
Been thanked: 0 time

Re: Volume (ABC001,ABC002,ABC003)

Postby Akatsukami » Fri Jul 06, 2012 7:38 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Volume (ABC001,ABC002,ABC003)

Postby Robert Sample » Fri Jul 06, 2012 7:54 pm

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!
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Volume (ABC001,ABC002,ABC003)

Postby expat » Fri Jul 06, 2012 8:54 pm

And of course if your dataset is SMS managed any specified volumes may be totally ignored by the SMS allocation
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: Volume (ABC001,ABC002,ABC003)

Postby parthiban » Fri Jul 06, 2012 10:39 pm

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?
Parthiban jayaraman
mainframe rexxer,
Banglore
parthiban
 
Posts: 66
Joined: Mon Oct 20, 2008 7:54 pm
Location: Bangalore-India
Has thanked: 0 time
Been thanked: 0 time

Re: Volume (ABC001,ABC002,ABC003)

Postby Akatsukami » Fri Jul 06, 2012 10:58 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Volume (ABC001,ABC002,ABC003)

Postby Robert Sample » Fri Jul 06, 2012 11:01 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Volume (ABC001,ABC002,ABC003)

Postby parthiban » Tue Jul 10, 2012 1:36 am

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....
Parthiban jayaraman
mainframe rexxer,
Banglore
parthiban
 
Posts: 66
Joined: Mon Oct 20, 2008 7:54 pm
Location: Bangalore-India
Has thanked: 0 time
Been thanked: 0 time

Re: Volume (ABC001,ABC002,ABC003)

Postby Akatsukami » Tue Jul 10, 2012 1:52 am

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?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Volume (ABC001,ABC002,ABC003)

Postby parthiban » Tue Jul 10, 2012 2:42 am

ok...,so is it possible in OS/390 ...or any reason for my query
Parthiban jayaraman
mainframe rexxer,
Banglore
parthiban
 
Posts: 66
Joined: Mon Oct 20, 2008 7:54 pm
Location: Bangalore-India
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post