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



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

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

Postby Bad Man » Fri Apr 06, 2012 12:38 am

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.
Bad Man
 
Posts: 96
Joined: Sun Apr 04, 2010 2:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby dick scherrer » Fri Apr 06, 2012 7:12 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Bad Man » Sun Apr 08, 2012 1:02 am

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.
Bad Man
 
Posts: 96
Joined: Sun Apr 04, 2010 2:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sun Apr 08, 2012 1:30 am

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".
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby steve-myers » Sun Apr 08, 2012 1:59 am

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.
steve-myers
Global moderator
 
Posts: 1967
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 214 times

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

Postby Bad Man » Sun Apr 08, 2012 2:19 am

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?
Bad Man
 
Posts: 96
Joined: Sun Apr 04, 2010 2:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby steve-myers » Sun Apr 08, 2012 6:19 am

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.
steve-myers
Global moderator
 
Posts: 1967
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 214 times

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

Postby dick scherrer » Sun Apr 08, 2012 9:36 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Bad Man » Mon Apr 09, 2012 12:53 am

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.
Bad Man
 
Posts: 96
Joined: Sun Apr 04, 2010 2:20 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Mon Apr 09, 2012 3:58 am

Hello,

Maybe there are 1000 volumes that do NOT meet the rmm criteria?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Next

Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post