Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8195
Location: East Dubuque, Illinois, USA

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: 8614
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
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us