11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

AREAD instructionThe AREAD instruction can only be used inside macro definitions.Assign character string value►► SETC_symbol AREADNOPRINTNOSTMT►◄The second format of the AREAD instruction assigns to a SETC symbol a characterstring containing the local time.Assign local time►► SETC_symbol AREAD CLOCKBCLOCKD►◄SETC_symbolis a SETC symbol. See “SETC instruction” on page 364.NOSTMTspecifies that the statement to be read by the AREAD instruction is printed inthe assembly listing, but not given any statement number.NOPRINTspecifies that the statement does not appear in the listing, and no statementnumber is assigned to it.CLOCKBassigns an 8-character string to SETC_symbol containing the local time inhundredths of a second since midnight.CLOCKDassigns an 8-character string to SETC_symbol containing the local time in theformat HHMMSSTH, where HH is a value between 00 and 23, MM and SSeach have a value between 00 and 59, and TH has a value between 00 and 99.|||||Assign character string valueThe first format of AREAD functions in much the same way as symbolicparameters, but instead of providing your input to macro processing as part of themacro instruction, you can supply full input records from either the AINSERTbuffer (if any are present), or from the records in the primary input stream thatfollow immediately after the macro instruction. Any number of successive recordscan be read into the macro for processing. If no records remain, a null value isassigned, but no diagnostic message is issued.SETC_symbol may be subscripted. When the assembler encounters a Format-1AREAD statement during the processing of a macro instruction, it reads the sourcerecord following the macro instruction and assigns an 80-character string to theSETC symbol in the name field. In the case of nested macros, it reads the recordfollowing the outermost macro instruction.Chapter 7. How to specify macro definitions 255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!