Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need REXX To Convert SMF Timestamps To Local Time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Deborah Shugerts

New User


Joined: 14 Oct 2009
Posts: 10
Location: A Florida Cubicle...

PostPosted: Wed Oct 14, 2009 5:42 am    Post subject: Need REXX To Convert SMF Timestamps To Local Time
Reply with quote

Looking for a way to convert a SMF date and time stamp from GMT/UTC to local time. I have coded a procedure which determines the time zone and determines hours to be added or subtracted to the GMT time in the SMF record to calculate the local time. The SMF date is in mm/dd/yy format and the SMF time is in hh:mm:ss format. I can calculate the # of seconds since midnight. Problem occurs when SMF time plus or minus timezone hours spans midnight. (ex. 02:00:00 - 4 hours = 22:00 the previous day). Any suggestions would be appreciated.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Wed Oct 14, 2009 5:55 am    Post subject:
Reply with quote

If SMF minus offset is negative, add 24 to result. If SMF plus offset is greater than 24, subtract 24 from result.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 14, 2009 11:40 am    Post subject:
Reply with quote

How do you get the REXX to process the SMF records, as usually they are created as VBS, which REXX is unable to process.
Back to top
View user's profile Send private message
Deborah Shugerts

New User


Joined: 14 Oct 2009
Posts: 10
Location: A Florida Cubicle...

PostPosted: Wed Oct 14, 2009 5:21 pm    Post subject:
Reply with quote

expat wrote:
How do you get the REXX to process the SMF records, as usually they are created as VBS, which REXX is unable to process.


Copy the VBS records from the SMF dump to RECFM=VB using ICETOOL/DFSORT.

//CONSEL2 EXEC PGM=ICETOOL
//DFSMSG DD SYSOUT=*
//RAWSMF2 DD DSN=HLQ1.HLQ2.SMF11902,DISP=SHR
//CONSMF2 DD DSN=HLQ1.HLQ2.SMF11902.VB(+1),DISP=(NEW,CATLG),
// DCB=(RECFM=VB,LRECL=32756,BLKSIZE=0),UNIT=SYSDA,
// SPACE=(1,(300,100),RLSE)
//CON1CNTL DD DSN=HLQ1.HLQ2.CONTROL(CONTRL02),DISP=SHR
/*
//TOOLMSG DD SYSOUT=*
//REPORT DD SYSOUT=*
//TOOLIN DD *

CONTRL02 member:

OPTION DYNALLOC,VLSHRT,SPANINC=RC4
INCLUDE COND=(6,1,BI,EQ,119,AND,23,2,BI,EQ,2)
SORT FIELDS=(11,4,PD,A,7,4,BI,A)
Back to top
View user's profile Send private message
Deborah Shugerts

New User


Joined: 14 Oct 2009
Posts: 10
Location: A Florida Cubicle...

PostPosted: Thu Oct 15, 2009 3:55 am    Post subject:
Reply with quote

Thanks so much. That worked. Making things harder than they needed to be !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us