IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we check the creation time of a GDG Generation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Andy Robinson

New User


Joined: 04 Apr 2013
Posts: 5
Location: US

PostPosted: Tue Jul 02, 2013 4:56 pm
Reply with quote

"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.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Jul 02, 2013 4:59 pm
Reply with quote

Hello Andy,
The title says "Can we check the creation time of a GDG Generation"
Back to top
View user's profile Send private message
Andy Robinson

New User


Joined: 04 Apr 2013
Posts: 5
Location: US

PostPosted: Tue Jul 02, 2013 6:01 pm
Reply with quote

Curses, and I was so sure I was demonstrating my superior mastery with that trivial bit of Rexx code!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jul 02, 2013 8:02 pm
Reply with quote

Actually, using creation time for some processing is just little too much, for any platform - let alone the zOS!

And that's why SMF came in to the play...
Back to top
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Thu Jul 25, 2013 4:43 pm
Reply with quote

HI Vasanthz,

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 ..

Thanks
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Jul 25, 2013 6:52 pm
Reply with quote

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 .

Hope it helps.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Check data with Exception Table DB2 0
No new posts C Compile time time stamps Java & MQSeries 10
Search our Forums:

Back to Top