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: 187
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: 213
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: 10274
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: 8118
Location: East Dubuque, Illinois, USA

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: 187
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: 1771
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: 187
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 Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


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