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

How can we get the Volume serial number


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 68

PostPosted: Thu Apr 02, 2009 8:47 pm
Reply with quote

Hi,

How to access a dataset which DISP=KEEP. How would we know the Volume serial no.? Can it be accessed without knowing the volume serial number.


Thanks,
Ravi
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Apr 02, 2009 8:57 pm
Reply with quote

IIRC, the volser is in the jeslog when the dataset is allocated.
If it is not cataloged, no.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 02, 2009 9:05 pm
Reply with quote

Hello,

Quote:
How to access a dataset which DISP=KEEP.
No problem - there will be no dataset reference as that is a jcl error. . . icon_wink.gif

Quote:
How would we know the Volume serial no.? Can it be accessed without knowing the volume serial number.
VOLSERs are usually not referenced - everything except external tape file should be cataloged.

As Bill mentions, if you somehow are using a dataset that is not cataloged, you would need to specify the volser in the jcl.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 03, 2009 3:23 pm
Reply with quote

ravikumar15 wrote:
How to access a dataset which DISP=KEEP. How would we know the Volume serial no.?
Did you want to say that mentioning Volume Serial no. , while using DISP=KEEP, is must?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 03, 2009 4:13 pm
Reply with quote

By default in an SMS environment, for DASD datasets DISP=KEEP is translate to DISP=CATLG.

Try to allocate a DASD with DISP=(,KEEP) and see what happens
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Sun Apr 05, 2009 7:16 pm
Reply with quote

I used to put the dataset name in my jcl then do an ed check. If I had the wrong vol=ser the checker would tell me the correct vol=ser for the dsn in the output. Then simply apply a standard 'cutnpaste' procedure.
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 Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Cobol program with sequence number ra... COBOL Programming 5
Search our Forums:

Back to Top