HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Assign local time of day

HLASM Language Reference
SC26-4940-06

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'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014