Assign local time of day
The second format of AREAD functions in much the same way as a SETC instruction, but instead of supplying the value you want assigned to the SETC symbol as a character string in the operand of the AREAD instruction, the value is provided by the operating system in the form of an 8-character string containing the local time. A Format-2 AREAD instruction does not cause the assembler to read the statement following the macro instruction.
Example:
MACRO
MAC2
.
&VAL AREAD CLOCKB
DC C'&VAL'
&VAL1 AREAD CLOCKD
DC C'&VAL1'
.
MEND
When this macro definition is called, these statements are generated:
MAC2
+ DC C'03251400'
+ DC C'09015400'