Use the RETURN_DATE form of the TLMDATE macro to return the current date and time.
This macro has the following format:
label TLMDATE RETURN_DATE
,DATE=internal ,TIME=internal ,ANCHOR=anchor ,PARM=plist [,NORMAL=branch] [,ERROR=branch] [,FAIL=branch]
Specifies the field to receive the current date.
Type: RX-type label or (Rn), internal packed (4 bytes)
Specifies the field to receive the current time.
Type: RX-type label or (Rn), internal packed (4 bytes)
Points to the label specified by the ANCHOR form of the TLMDATE macro.
Type: RX-type label or (Rn)
Points to the label specified by the PARM form of the TLMDATE macro.
Type: RX-type label or (Rn)
(Optional). Specifies the instruction to receive control on return from the CTSDATE module when no errors occurred. If not defined, the next instruction after the macro is executed.
Type: RX-type label
(Optional) Specifies the instruction to receive control on return from the CTSDATE module when a date or range error occurred. If not defined, the next instruction after the macro is executed.
Type: RX-type label
(Optional) Specifies the instruction to receive control on return from the CTSDATE module when a critical error has occurred. If not defined, the next instruction after the macro is executed.
Type: RX-type label
Example: TLMDATE RETURN_DATE Macro
Pos. 72
|
TLMDATE RETURN_DATE,DATE=CURRDATE,TIME=CURRTIME, X
ANCHOR=ANCHOR,PARM=DPARM
|
Copyright © 2014 CA.
All rights reserved.
|
|