Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how can we specify the DSName of a tape or cartridge

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how can we specify the DSName of a tape or cartridge
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: 8593
Location: Back in jolly old England

PostPosted: Sat Feb 14, 2009 7:16 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

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

Take a look at THIS thread.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Feb 14, 2009 10:34 pm    Post subject:
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    Post subject:
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: 259

PostPosted: Sun Feb 15, 2009 8:32 pm    Post subject:
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

Site Director


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

PostPosted: Mon Feb 16, 2009 6:38 am    Post subject:
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    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 Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us