Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Given a referback how to obtain the data being referred to

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Given a referback how to obtain the data being referred to
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    Post subject:
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    Post subject: Reply to: Given a referback how to obtain the data being ref
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us