Page 1 of 2

How can I use a batch job to list tapes in a library.

PostPosted: Fri Apr 06, 2012 12:38 am
by Bad Man
How can I use a batch job to list tapes in a library what we do in ISMF option 10;3 and then listvol. I am using Rmm.I remem using something may be IDCAMS or IEHLIST but now have been googling for a good time but not able to figure out. My region size is at maximum but still the number of tapes is too large to display.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Fri Apr 06, 2012 7:12 am
by dick scherrer
Hello,

Most tape inventories are controlled by an automated Tape Management System. Suggest you talk with the storage management people who support the tape inventory. These automated systems have reporting tools that should provide what you want.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Sun Apr 08, 2012 1:02 am
by Bad Man
I am the storage admin for this account also we use DFRMM here. Last month i used some utility probably IDCAMS but now I have lost the JCL and was trying to see if anyone else has come across this.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Sun Apr 08, 2012 1:30 am
by dick scherrer
Hello,

Is there a tape management system installed (i.e. CA-1)?

If the tapes have unique ranges of volsers that do not overlap dasd volsers, you might run a LISTCAT and from that output select the tape entries or ignore the dasd entries.

How can I use a batch job to list tapes in a library what we do in ISMF option 10;3 and then listvol.
I do not understand the question, so i'm not sure what info you want to "list".

Re: How can I use a batch job to list tapes in a library.

PostPosted: Sun Apr 08, 2012 1:59 am
by steve-myers
Bad Man: your question is so generic no one here can answer it. You will have to hit the manuals. Try "DFSMSrmm Reporting," or "DFSMSrmm Managing and Using Removable Media," or "DFSMSrmm Implementation and Customization Guide." These manuals are all in the DFSMS group for your z/OS release. You would have been better off if you had done this first instead of wasting your time, and ours, too.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Sun Apr 08, 2012 2:19 am
by Bad Man
ok let me try putting in a different manner...we usually go to ISMF and then OPTION 10 then 3 pull all the libraries and then do a listvol on the libraries to see hwo many tapes are in the library but the no. of tapes for me have increased so much that listvol fails even if I keep the maximum region size...Makes sense?

Re: How can I use a batch job to list tapes in a library.

PostPosted: Sun Apr 08, 2012 6:19 am
by steve-myers
Bad Man: your question is so generic no one here can answer it. You will have to hit the manuals. Try "DFSMSrmm Reporting," or "DFSMSrmm Managing and Using Removable Media," or "DFSMSrmm Implementation and Customization Guide." These manuals are all in the DFSMS group for your z/OS release. You would have been better off if you had done this first instead of wasting your time, and ours, too.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Sun Apr 08, 2012 9:36 pm
by dick scherrer
Hello,

Given that you have hit a capacity "wall" with this approach, it is probably time to try another. . .

Have you tried creating the LISTCAT in batch (writing it to dasd) and then selecting the entries you want for the "count". Once the list has been created, i suspect you could get the count using your sort product.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Mon Apr 09, 2012 12:53 am
by Bad Man
I tried these both JCLs

//EDITLOG EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
RMM SEARCHVOLUME LIMIT(*) RECORDINGFORMAT(36TRACK) TYPE(LOGICAL)+
OWNER(*) VOLUME('*')

READY
RMM SEARCHVOLUME LIMIT(*) RECORDINGFORMAT(36TRACK) TYPE(LOGICAL)OWNER(*) VOLUME(
Volume Owner    Rack   Assigned   Expiration Location Dsets St Act   Dest.     
                       date       date                                         
------ -------- ------ ---------- ---------- -------- ----- -- ----- --------   
071506 BATGLPC         07/31/2011 07/31/2011 STPVTS01 3     MV                 
071533 CA7                01/01/2009 12/31/1999 STPVTS01 1     MV                 
071588 TESTFTT         07/07/2006 07/14/2006 STPVTS01 1     MV                 
071615 IBMSTGD         05/16/2011 05/15/2012 STPVTS01 3     MV                 
071624 PRODFTT        07/03/2006 07/10/2006 STPVTS01 1     MV                 
071636 TESTFTT         07/07/2006 07/14/2006 STPVTS01 1     MV                 
071666 BATGLPC         07/31/2011 07/31/2011 STPVTS01 2     MV                 
071696 BATGLPC         07/31/2011 07/31/2011 STPVTS01 3     MV               


and this one

//STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTC CAT(SYS1.VOLCAT.VGENERAL ) ALL

in both I did a find on STPVTS01 the library in question and found the no. of tapes the first job tells it's 164376 volsers and IDCAMS says 163376. Wish i could just listcat the tape library once through ISMF to find out which one is correct. The reason may be that some tapes are not identified by catalog I will keep researching.

Re: How can I use a batch job to list tapes in a library.

PostPosted: Mon Apr 09, 2012 3:58 am
by dick scherrer
Hello,

Maybe there are 1000 volumes that do NOT meet the rmm criteria?