View previous topic :: View next topic
|
Author |
Message |
Keith D. Johnston
New User
Joined: 03 Apr 2009 Posts: 2 Location: Texas
|
|
|
|
I am given a referback that refers to a DD statement that for a tape with VOL=SER=X. Is it possible to obtain the vol/ser value 'X' from the referback, and if so, how is it done?
I do not control the JCL with the original definition and can not modify it. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Obtain the VOLSER where? Why?
If the file is cataloged, you don't need to know the VOLSER.
If the file is passed, you'll need the VOLSER in case the job is interrupted. You'll have to examine the job listing.
Perhaps explaining your problem will help us get your solution. |
|
Back to top |
|
|
Keith D. Johnston
New User
Joined: 03 Apr 2009 Posts: 2 Location: Texas
|
|
|
|
The vol/ser must be placed into one or more separate jobs that are built to follow the current job. The following job(s) call a utility that explicitly requires both DSN and vol/ser. My code is in effect being a middleman. The tape is not cataloged. Changes to anything other than my code are not possible. This is a completely automated solution. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If the following jobs didn't require the explicit VOLSER, your step could use DISP=(OLD,CATLG) to get the file cataloged. Uncatalog when finished. |
|
Back to top |
|
|
|