IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Given a referback how to obtain the data being referred to


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Keith D. Johnston

New User


Joined: 03 Apr 2009
Posts: 2
Location: Texas

PostPosted: Tue Apr 07, 2009 9:26 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Apr 07, 2009 9:47 pm
Reply with quote

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
View user's profile Send private message
Keith D. Johnston

New User


Joined: 03 Apr 2009
Posts: 2
Location: Texas

PostPosted: Tue Apr 07, 2009 10:27 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Apr 08, 2009 7:06 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top