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

how can we specify the DSName of a tape or cartridge


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

New User


Joined: 20 May 2007
Posts: 31
Location: iran

PostPosted: Sat Feb 14, 2009 6:13 pm
Reply with quote

Hi
I have some cartridge which I don't know what are their dsnames how can I specify it?
regards,
Kalhor
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Feb 14, 2009 7:16 pm
Reply with quote

The information will be in the TMS (Tape Management Software). If you have access you can find out for yourself, if not, ask your storage people,
Back to top
View user's profile Send private message
kalhor

New User


Joined: 20 May 2007
Posts: 31
Location: iran

PostPosted: Sat Feb 14, 2009 8:35 pm
Reply with quote

TMS is not available and storage people don't know about them, so we are going to find a solution for it.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Feb 14, 2009 9:06 pm
Reply with quote

Take a look at THIS thread.
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: Sat Feb 14, 2009 10:34 pm
Reply with quote

Hello,

Is there any chance these are multi-file volumes?

Finding the first dsname should be fairly easy. If there are an unpredictable number of files, it will be more tedious. . .
Back to top
View user's profile Send private message
kalhor

New User


Joined: 20 May 2007
Posts: 31
Location: iran

PostPosted: Sun Feb 15, 2009 4:17 pm
Reply with quote

NO they are not multi.
Do we have any utility wich read the tape and tell us about it'a lables, dsnames and anything else?
I've tried to read the tape through ICEGENER but it's sysout is contain the first part of dsname and not complete the jcl which is used is as follow and also sysut2 , please check :
Code:

//TAPEMAP1  JOB  MAINX,CLASS=D,MSGCLASS=T         
//S98     EXEC   PGM=ICEGENER                           
//SYSPRINT   DD  SYSOUT=T                               
//SYSUT1     DD  UNIT=CART,VOL=SER=DP0025,LABEL=(4,BLP),
//           DISP=OLD,DSORG=PS,RECFM=F,BLKSIZE=80
//SYSUT2     DD  SYSOUT=T,BLKSIZE=80               
//SYSIN      DD  DUMMY


sysut2
============================================
HDR1.D2008272.T073107DP002500010002 0082720090060000000IBM OS/VS 370
HDR2U000000000000ARCHIVET/BKLOAD P 205B93
============================================
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Sun Feb 15, 2009 8:32 pm
Reply with quote

Hi, You have done all the hard work and obtained all the information you require. Tape processing only writes the last 17 characters of the DSNAME on the tape. in this case .D2008272.T073107. So in order to read the tape you just need to prefix these 17 chars with a qualifier to which you have read access. The system only checks the validity of these 17 characters, this is the reason that when creating tapes to be sent offsite most older Sysprogs create dsnames of about 25 characters, it means that the people at the other site do no have to bother with RACF when reading the tape. You just specifyDSN=USERID.17CHARS and all is ok. There used to be a manual called "Using Magnetic Tape Labels and File Structure" if you can get a copy of this it describes the processing very well.
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: Mon Feb 16, 2009 6:38 am
Reply with quote

Hello,

Quote:
NO they are not multi.
I believe they are. . . At least the one from your example.

4,blp only works for a multi-file volume. File "4" is the header for the second standard labeled file. Notice there is no volume info shown. If you used 1,blp you would see the volume info followed by the 2 hdr labels.

Suggest you also check at 7,blp unless you have some way to know there are only 2 standard labeled files on the tape(s). If there is a third data file, there many be more. . . At some point, there is the possibility of "reading off the end of the tape". . .
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 Deleting a Tape file JCL & VSAM 14
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts Using Virtual Tape Server TS7700 as c... All Other Mainframe Topics 0
Search our Forums:

Back to Top