"Use SMF" is not a reasonable suggestion for most users. If all you need is the creation date of a GDG generation (generational dataset or GDS), and you know the name of the specific GDS or GDSs, try this:
Code:
/* REXX */
parse arg dataset .
if (left(dataset, 1) <> "'") then do
dataset = ("'" || dataset || "'")
end /* if */
listError = listdsi(dataset)
say dataset "was created on" SYSCREATE
exit (listError)
Although if this works, the information should be in LISTCAT ALL, as well.
Thanks a bunch for all you responses on this.. this really helped me a lot ..
I appologies for my delayed response as I put this req on hold due to other priorities tasks however I have resumed this activity now and working to get the time (rest of my tool has created,now lookign for the time of creation) .. I had a word with SM guy here he gave me one job i.e. a SAS job and Taking much considerable time to run ..
I tried your way(only first step as of now) and looks like it has fetched the dat for me but I cant try your next step as it is DFSORT and we have SYNCSORT here? .. the Date and time are not in display format in the output datset I got ,
Would you please show me a way to display the values with syncsort ..
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
Hello,
I don't have SYNCSORT to test this, but I think this would work on SYNCSORT as well.
Code:
//SORT EXEC PGM=SORT,REGION=5000K
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SMF15RPT DD SYSOUT=*
//SORTIN DD DISP=SHR,DSN=SMF DATASET WITH TYPE 15 RECORDS
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(6,1,BI,EQ,15,&,69,5,CH,EQ,
C'WELLS')
OUTFIL FNAMES=SMF15RPT,VTOF,BUILD=(02:11,4,DT1,EDIT=(TTTT/TT/TT),
15:49,4,TM1,EDIT=(TT:TT:TT),25:15,4,31:19,8,41:69,44)
/*
Quote:
I had a word with SM guy here he gave me one job i.e. a SAS job and Taking much considerable time to run ..
The SAS job could be processing all the variables in SMF 15 record type and hence could be taking more time. Cutting down the variables required could yield better results.
SAS is my first love <3 .