I already convert the SMF time into human time by using arithmetic but I am
having a problem with the calculation and I am attempting to use the ASM macros
to convert the time. Here is what I am doing:
* CREATE TODDATE
MVC SMFDATE,SMF2DTE
MVI SMFDATE,X'20'
L R2,SMFDATE R2 X'20YYDDDS'
SRL R2,4 R2 X'020YYDDD'
ST R2,CVDATE CVDATE XL4 X'020YYDDD'
MVC CVZERO,ZERO
CONVTOD CONVVAL=CVTD,TODVAL=TODCLOCK,DATETYPE=YYYYDDD
* SET TIME
L R2,TODTIME
A R2,SMF2TME
ST R2,TODTIME
This returns what looks to me to be a good TODCLOCK
TODCLOCK
+0 CC208E64 F236F8F4
Now I do a
STCKCONV STCKVAL=TODCLOCK,CONVVAL=TMECVTD,DATETYPE=MMDDYYYY, +
TIMETYPE=DEC
It returns:
TMECVTD
+0 00000000 08670000 10182013 00000000
The time is not correct (the date is). Any ideas on what I am doing wrong? By
my calculations the time should be 14:52:00.16.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN