LINKAGE=SYSTEM - Execute form

Use the execute form of the TIME macro (LINKAGE=SYSTEM) 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 TIME macro is written as follows:

Syntax Description
   
   name name: Symbol. Begin name in column 1.
   
One or more blanks must precede TIME.
   
TIME  
   
One or more blanks must follow TIME.
   
DEC,stor addr Default: DEC
Start of changeBIN,stor addrEnd of change Start of changestor addr: RX-type address or register (2) - (12).End of change
MIC,stor addr  
STCK,stor addr  
STCKE,stor addr  
   
   ,ZONE=LT Default: ZONE=LT
   ,ZONE=UTC|GMT Note: This parameter has no meaning if STCK is specified.
   
   ,LINKAGE=SYSTEM Note: LINKAGE=SYSTEM must be specified in order to obtain the execute form of the TIME macro.
   
   ,DATETYPE=YYYYDDD Default: DATETYPE=YYYYDDD
   ,DATETYPE=MMDDYYYY Note: This parameter has no meaning if STCK is specified.
   ,DATETYPE=DDMMYYYY  
   ,DATETYPE=YYYYMMDD  
   
,MF=(E,list addr) list addr: RX-type address or register (2) - (12).
   

Parameters

The parameters are explained under the standard form of the TIME macro with LINKAGE=SYSTEM, with the following exception:

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

Example

Request the local time of day and date to be returned in a 16-byte area called OUTAREA. The local time of day should be returned as decimal digits and the local date should be returned in year/month/day format. Specify the address of the appropriate parameter list in LIST1.
          TIME  DEC,OUTAREA,LINKAGE=SYSTEM,MF=(E,LIST1),DATETYPE=YYYYMMDD
OUTAREA   DS    CL16          TIME AND DATE RETURNED