I need ask for a creation date in file or gdg



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

I need ask for a creation date in file or gdg

Postby victor » Mon Aug 30, 2010 2:29 pm

hello.
I need ask for a creation date in file or gdg
thanks
victor
 
Posts: 1
Joined: Mon Aug 30, 2010 1:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: movement of dataset from sms to non-sms volume

Postby steve-myers » Mon Aug 30, 2010 5:50 pm

Victor, this should be a new topic, not a continuation of an entirely unrelated topic. For VSAM data sets, you can use the LISTCAT command in the IDCAMS utility. You can use LISTCAT for cataloged non-VSAM data sets, but all you'll get is the date the catalog entry was created, which may not have anything to do with when the data set itself was created.

For data sets on disk, the creation date is stored in the VTOC entry for the data sets. The HISTORY option in the TSO LISTDS command can be used to retrieve the creation date, and it can be retrieved by batch utilities like the LISTVTOC command in IEHLIST. The output from LISTDS looks like this:
SYS1.MACLIB                                             
--RECFM-LRECL-BLKSIZE-DSORG-CREATED---EXPIRES---SECURITY
  FB    80    6160    PO    2001.093   00.000   RACF   
--VOLUMES--                                             
  Z6RES1


For data sets on tape, the creation date is stored in the label on the tape. The tape management system also stores this date, and it is usually the most convenient way to get the creation date. Since there are several tape management systems, you will have to consult with your site management to determine the method you should use. As with disk data sets, you can use the LISTCAT command if the data set is cataloged, though the date may not have anything to do with when the data set itself was created.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: I need ask for a creation date in file or gdg

Postby dick scherrer » Mon Aug 30, 2010 11:21 pm

Hello and welcome to the forum,

As Steve mentioned, when you have a question you need to start a new topic for your question.

I am not sure what your question asks. . . :?

If you explain what you "have" and what you "want", i'll change the topic subject.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post