22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Process Statement<br />

Process Statement<br />

The process statement is described under “*PROCESS Statement” on page 102.<br />

PUNCH Instruction<br />

The PUNCH instruction creates a record containing a source or other statement, or<br />

an object record, to be written to the object file.<br />

►►──┬─────────────────┬──PUNCH──string─────────────────────────────►◄<br />

└─sequence_symbol─┘<br />

sequence_symbol<br />

is a sequence symbol.<br />

string<br />

is a character string of up to 80 characters, enclosed in single quotation marks.<br />

All 256 characters in the EBCDIC character set are allowed in the character<br />

string. Variable symbols are also allowed.<br />

Double-byte data is permissible in the operand field when the DBCS assembler<br />

option is specified. However, the following rules apply to double-byte data:<br />

The DBCS ampersand and the single quotation mark are not recognized as<br />

delimiters.<br />

A double-byte character that contains the value of an EBCDIC ampersand<br />

or a single quotation mark in either byte is not recognized as a delimiter<br />

when enclosed by SO and SI.<br />

The position of each character specified in the PUNCH statement corresponds<br />

to a column in the record to be punched. However, the following rules apply to<br />

ampersands and single quotation marks:<br />

A single ampersand initiates an attempt to identify a variable symbol and to<br />

substitute its current value.<br />

A pair of ampersands is punched as one ampersand.<br />

A pair of single quotation marks is punched as one single quotation mark.<br />

An unpaired single quotation mark followed by one or more spaces simply<br />

ends the string of characters punched. If a non-space character follows an<br />

unpaired single quotation mark, an error message is issued and nothing is<br />

punched.<br />

Only the characters punched, including spaces, count toward the maximum of<br />

80 allowed.<br />

The PUNCH instruction causes the data in its operand to be punched into a record.<br />

One PUNCH instruction produces one record, but as many PUNCH instructions as<br />

necessary can be used.<br />

You can code PUNCH statements in:<br />

A source module to produce control statements for the linker. The linker uses<br />

these control statements to process the object module.<br />

208 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!