View previous topic :: View next topic
|
Author |
Message |
Erika Garcia
New User
Joined: 28 Feb 2007 Posts: 5 Location: Mexico
|
|
|
|
Hello,
I've been reading several topics but haven't found a way to et the creation date for a flat file, can this be done with a jcl utility like syncsort or iebgener or any other. I have an input file, IN.P.FILE and I need the creation date, I found how to get the date from TSO command but I need it from a JCL.
Thanks for the help.
=D |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You can get creation date from a LISTCAT. You would run the report to disk, then parse the output for the "creation" date. Following is an example of the output from a listcat:
Code: |
NONVSAM ------- MS.RDS.CAP1006
IN-CAT --- ICAT.VD38200
HISTORY
DATASET-OWNER-----(NULL) CREATION--------2007.011 <--- the create date
RELEASE----------------2 EXPIRATION------0000.000
ACCOUNT-INFO-----------------------------------(NULL)
SMSDATA
STORAGECLASS ------SCSTD MANAGEMENTCLASS----MCSTD
DATACLASS ------DCDFAULT LBACKUP ---XXXX.XXX.XXXX
VOLUMES
VOLSER------------MIGRAT DEVTYPE------X'78048083'
ASSOCIATIONS--------(NULL)
ATTRIBUTES
|
Once you have the create date, where will it be used? |
|
Back to top |
|
|
Erika Garcia
New User
Joined: 28 Feb 2007 Posts: 5 Location: Mexico
|
|
|
|
Hellloooo,
Great idea, I'll use it in an email notification that we need to verify the creation of a data set, let me give it a try and I'll keep you posted !
Thanks !
Egm |
|
Back to top |
|
|
Erika Garcia
New User
Joined: 28 Feb 2007 Posts: 5 Location: Mexico
|
|
|
|
Hello,
I used this command,
LISTCAT ENT('DATA.SET.NAME') ALL
and it works ! ! ! ! ! ! I only have to do a small SAS program to change from Julian date to standard date format ! !
Thanks a lot !!!
Egm
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - glad we could help |
|
Back to top |
|
|
paray2x
New User
Joined: 28 Dec 2005 Posts: 21
|
|
|
|
Hi,
Using LISTCAT ENT('DATA.SET.NAME') HISTORY in place of ALL would list only the date.
You can use it if you do not want any other info |
|
Back to top |
|
|
|