STCKCONV - Execute form

Use the execute form of the STCKCONV macro together with the list form of the macro for applications that require reentrant code. The execute form of the macro stores the parameters into the storage area defined by the list form.

Syntax

The execute form of the STCKCONV macro is written as follows:

Syntax Description
   
   name name: Symbol. Begin name in column 1.
   
One or more blanks must precede STCKCONV.
   
STCKCONV  
   
One or more blanks must follow STCKCONV.
   
STCKVAL=TOD clock addr TOD clock addr: RX-type address or register (2) - (12).
STCKEVAL=ETOD clock addr ETOD clock addr RX-type address or register (2) - (12).
   
,CONVVAL=conv addr conv addr: RX-type address or register (2) - (12).
   

    ,TIMETYPE=DEC
    ,TIMETYPE=BIN
    ,TIMETYPE=MIC

Default: TIMETYPE=DEC
   

    ,DATETYPE=YYYYDDD
    ,DATETYPE=DDMMYYYY
    ,DATETYPE=MMDDYYYY
    ,DATETYPE=YYYYMMDD

Default: DATETYPE=YYYYDDD
   
,MF=(E,list addr) list addr: RX-type address or register (1) - (12).
   

Parameters

The parameters are explained under the standard form of the STCKCONV macro with the following exception:

,MF=(E,list addr)
Specifies the execute form of the STCKCONV macro. list addr specifies the address of the parameter list created by the list form of the macro.

Example

Convert a TOD clock value to time of day in microseconds and date in year-day of the year format. Specify the address of the appropriate parameter list in LIST1.
          STCKCONV STCKVAL=TODCLOCK,CONVVAL=OUTVAL,TIMETYPE=MIC,        X
                DATETYPE=YYYYDDD,MF=(E,LIST1)
TODCLOCK  DC X'9FE4781301ABE000'     TOD CLOCK VALUE
OUTVAL    DS CL16                    CONVERTED VALUE