Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To get the date in which a dataset is created and changed last

Status
Not open for further replies.

aarthyarun

Technical User
Sep 25, 2006
12
IN
Hi,

I want to get the date on which a dataset is created and the date when the dataset is last changed.

Is it possible through REXX.

Regards,
Aarthy
 

This is not exactly a 'REXX' problem. The 'create date' will be available without much effort -- it's in one of the DSCBs --, but you will need to scan SMF data to determine the date-of-last-update.

You will likely not want to do that in REXX.


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Have a look at the LISTDSI function. It might help.

Here's an example

/*rexx*/
x = "'MYREXX.LIB'" /* can be any valid dsn */
X = LISTDSI(x)
say x
say 'Dataset name :' sysdsname
say 'Date created :' syscreate
say 'Date referenced:' sysrefdate
say 'Updated? :' sysupdated

Hope this help

 
The only kaveat I would add to DProv's post is the 'sysupdated' is only an indicator that the file has been updated, not a time stamp. It is a "Y" or "N" flag I believe. ... and of course 'last referenced date' isn't always (if ever) the same as last updated date (just in case some may think it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top