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: 8154
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: 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
No new posts Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 2 Fri Sep 22, 2017 6:00 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am

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