Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Show expiry date for tape dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Tue Feb 28, 2012 7:37 pm    Post subject: Show expiry date for tape dataset
Reply with quote

Is there an online ISPF utility and/or batch utility that will list the expiry date of a tape dataset? The LISTCAT command doesn't do this. If someone can give me the name of the utility and the manual then I can research it. Thanks.
Back to top
View user's profile Send private message

bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 208
Location: Cochin/Kerala/India

PostPosted: Tue Feb 28, 2012 7:41 pm    Post subject:
Reply with quote

Is TMS(Tape Management System) utility is avialable on your company?.This utility will help you to find the exp dt
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Tue Feb 28, 2012 8:42 pm    Post subject: Reply to: Show expiry date for tape dataset
Reply with quote

Or you can give "TI" command before Tape dataset in 3.4 option.


Code:

DSLIST - Data Sets Matching NEW.UACC.RM52051.CLI850.M*              Row 1 of 3
Command ===>                                                  Scroll ===> CSR
                                                                             
Command - Enter "/" to select action                  Message           Volume
------------------------------------------------------------------------------
ti       NEW.UACC.RM52051.CLI850.M01                                    M94536
         NEW.UACC.RM52051.CLI850.M11                                    O26887
         NEW.UACC.RM52051.CLI850.M12                                    M04659


Code:

-----------------------------   CA 1 TAPE INQUIRY  ---------------------
                                                                       
Data Set Name . . . : NEW.UACC.RM52051.CLI850.M01                       
                                                                       
General Data                         Creation Information               
 Volume Serial. . . : M94536          Date . . . . . . : 2012/053       
 Alternate Volume . :                 Time . . . . . . : 19:08:00       
 Media type   . . . : 3490-36X2       Jobname  . . . . : NEWRM52       
 Record Format. . . : VB              Program  . . . . : NEWG052       
 Record Length. . . : 20503          Last Used Information             
 Block Size   . . . : 32760           Date . . . . . . : 2012/054       
 Number of blocks . : 140068          Time . . . . . . : 08:34:00       
 Percent utilized . : 0               Jobname  . . . . : A310751B       
 Batch ID/Hook ID . : CLOSE IO       Expiration Information             
 Status   . . . . . : ACTIVE          Expire Date. . . : 2012/143       
                                                                       
File  / Volume Set                   Vault Management Information       
 Base Volume. . . . : M94536          Outcode. . . . . :               
 Sequence Number. . : 1               Slot   . . . . . : 0000000       
 Total Files in Set : 1               Outdate. . . . . :               
Secondary volumes:                                                     


or try giving "TMSRPT" before tape dataset in 3.4 option

Code:


   Menu  Options  View  Utilities  Compilers  Help                             
 ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
 DSLIST - Data Sets Matching NEW.UACC.RM52051.CLI850.M*              Row 1 of 3
 Command ===>                                                  Scroll ===> CSR 
                                                                               
 Command - Enter "/" to select action                  Message           Volume
 -------------------------------------------------------------------------------
 tmsrpt   NEW.UACC.RM52051.CLI850.M01                                    M94536
          NEW.UACC.RM52051.CLI850.M11                                    O26887
          NEW.UACC.RM52051.CLI850.M12                                    M04659
 ***************************** End of Data Set list ****************************



Code:

 Menu  Options  View  Utilities  Compilers  Help                             
  ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
  DSLIST - Data Sets Matching NEW.UACC.RM52051.CLI850.M*              Row 1 of 3
  Command ===>                                                  Scroll ===> CSR 
                                                                                 
  Command - EssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN e
  --------- e -------------------- Tape (M94536) Report  ------------------- e --
  tmsrpt    e COMMAND ===>                                                   e 6
            e                                                                e 7
            e DATASET = NEW.UACC.RM52051.CLI850.M01                          e 9
  ********* e                                                                e **
            e CREATED by NEWRM52  on FEBRUARY 22, 2012   CYCLE=              e   
            e                                                                e   
            e  EXPIRES IN 84 DAYS on MAY 22, 2012                            e   
            e                                                                e   
            e RECFM = VB       LRECL = 020503   BLKSIZE = 032760             e   
            e                                                                e   
            e TAPES   = 1          BLOCKS= 140,068                           e   
            e                                                                e   
            e RECORDS = 140,068                                              e   
            e                                                                e   
            e  F1=HELP     F2=SPLIT    F3=END      F4=RETURN   F5=RFIND      e   
  F1=Help  e  F6=RCHANGE  F7=UP       F8=DOWN     F9=SWAP    F10=LEFT       e   




Thanks
-3nadh
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Feb 28, 2012 8:45 pm    Post subject: Reply to: Show expiry date for tape dataset
Reply with quote

what if the TS has a different tape management system ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Feb 28, 2012 8:55 pm    Post subject:
Reply with quote

bodatrinadh, in general we avoid recommending particular functions unless they are available everywhere. When I take your advice for the TI in ISPF 3.4, I get:
Code:
 TI       DCS.PROD.ADDS.BANK.BACKUP.G2072V00                             110077
 IKJ56500I COMMAND TI NOT FOUND
 ***
and similarly for TMSRPT:
Code:
 tmsrpt   DCS.PROD.ADDS.BANK.BACKUP.G2072V00                             110077
 IKJ56500I COMMAND TMSRPT NOT FOUND
 ***


In other words, what you have recommended works at YOUR site -- and possibly nowhere else in the world. Unless you know for a fact that jerryte works at your site (and if you do, why use this forum to communicate?), your advice is most likely wrong and hence worse then useless since it can send jerryte on a fruitless inquiry to find out why they don't work.
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Tue Feb 28, 2012 9:59 pm    Post subject:
Reply with quote

I don't have Tape Management system at my company. The TI command appears to be part of a vendor tool which I also don't have. If there is an IBM utility that can provide this info then it would be appreciated.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Tue Feb 28, 2012 10:08 pm    Post subject:
Reply with quote

I don't know if RMMISPF would be use (some moron misinstalled it so I can't run it), but it might be worth trying.
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 183
Location: Toronto, ON, Canada

PostPosted: Tue Feb 28, 2012 10:50 pm    Post subject:
Reply with quote

Thanks for the suggestion. I don't have RACF access to the datasets required to use this tool. I am not sure if this is intentional or just an oversite. I can use other ISMF functions.
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: Tue Feb 28, 2012 11:19 pm    Post subject:
Reply with quote

Click HERE for a topic using IGGCSI00.

In the topic there is another red click here which takes you to the manual.

Click HERE for an example of the code that gets the creation date of a file. I think that the expiration date field can be interchanged with the creation date field without problems.

I think that a quick ISPF edit is all that is required.
Code:
 C 'DSCRDT2' 'DSEXDT2' ALL
Back to top
View user's profile Send private message
satish kompella

New User


Joined: 22 Feb 2012
Posts: 4
Location: india

PostPosted: Wed Feb 29, 2012 12:33 pm    Post subject:
Reply with quote

can you try 'listcat ent(/) all', it seems to work here at my site
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us