22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

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

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

Values in Operands<br />

Parentheses<br />

In macro instruction operand values, there must be an equal number of left and<br />

right parentheses. They must be paired, that is, each left parenthesis needs a<br />

following right parenthesis at the same level of nesting. An unpaired (single) left or<br />

right parenthesis can appear only in a quoted string.<br />

Examples:<br />

(PAIRED-PARENTHESES)<br />

()<br />

(A(B)C)D(E)<br />

(IN'('STRING)<br />

Spaces<br />

One or more spaces outside a quoted string indicates the end of the operands of a<br />

macro instruction. Thus spaces should only be used inside quoted strings.<br />

Example:<br />

'SPACES ALLOWED'<br />

Commas<br />

A comma outside a quoted string indicates the end of an operand value or sublist<br />

entry. Commas that do not delimit values can appear inside quoted strings or<br />

paired parentheses that do not enclose sublists.<br />

Examples:<br />

A,B,C,D<br />

(1,2)3'5,6'<br />

Equal Signs<br />

An equal sign can appear in the value of a macro instruction operand or sublist<br />

entry:<br />

As the first character<br />

Inside quoted strings<br />

Between paired parentheses<br />

In a keyword operand<br />

In a positional operand, provided the parameter does not resemble a keyword<br />

operand<br />

Examples:<br />

=H'21'<br />

A'='B<br />

C(A=B)<br />

2X=B<br />

KEY=A=B<br />

The assembler issues a warning message for a positional operand containing an<br />

equal sign, if the operand resembles a keyword operand. Thus, if we assume that<br />

the following is the prototype of a macro definition:<br />

MAC1<br />

&F<br />

the following macro instruction generates a warning message:<br />

MAC1 K=L (K appears to be a valid keyword)<br />

310 <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!