Page 1 of 1

I need ask for a creation date in file or gdg

PostPosted: Mon Aug 30, 2010 2:29 pm
by victor
hello.
I need ask for a creation date in file or gdg
thanks

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

PostPosted: Mon Aug 30, 2010 5:50 pm
by steve-myers
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.

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

PostPosted: Mon Aug 30, 2010 11:21 pm
by dick scherrer
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.