On Fri, 25 Oct 2013 08:50:53 -0500, Donald Likens wrote:

>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                                     

If you use DATETYPE=YYDDD instead, you can replace the 5 instructions from MVC 
to ST with this:
          MVC   CVTD+8(4),SMF2DTE

If you use TIMETYPE=BIN and add this instruction before CONVTOD:
          MVC   CVTD(4),SMF2TME
then you can eliminate the L,A, and ST instructions after CONVTOD.
Also, you might get the result that you are expecting.

Bill

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to