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.

Values in Operands<br />

Figure 82. Multilevel Sublists<br />

Selected Elements<br />

from &P<br />

&P<br />

&P(1)<br />

&P(2)<br />

&P(2,1)<br />

&P(2,2)<br />

&P(2,2,1)<br />

&P(2,2,2)<br />

N'&P(2,2)<br />

N'&P(2)<br />

N'&P(3)<br />

N'&P<br />

Selected Elements<br />

from &SYSLIST<br />

&SYSLIST(1)<br />

&SYSLIST(1,1)<br />

&SYSLIST(1,2)<br />

&SYSLIST(1,2,1)<br />

&SYSLIST(1,2,2)<br />

&SYSLIST(1,2,2,1)<br />

&SYSLIST(1,2,2,2)<br />

N'&SYSLIST(1,2,2)<br />

N'&SYSLIST(1,2)<br />

N'&SYSLIST(1,3)<br />

N'&SYSLIST(1)<br />

Value of<br />

Selected Element<br />

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

A<br />

(B,(C))<br />

B<br />

(C)<br />

C<br />

null<br />

1<br />

2<br />

1<br />

3<br />

Passing Sublists to Inner Macro Instructions<br />

You can pass a suboperand of an outer macro instruction sublist as a sublist to an<br />

inner macro instruction. However, if you specify the COMPAT(SYSLIST) assembler<br />

option, a sublist assigned to a variable symbol is treated as a character string, not<br />

as a sublist.<br />

Values in Operands<br />

You can use a macro instruction operand to pass a value into the called macro<br />

definition. The two types of value you can pass are:<br />

Explicit values or the actual character strings you specify in the operand<br />

Implicit values, or the attributes inherent in the data represented by the explicit<br />

values<br />

The explicit value specified in a macro instruction operand is a character string that<br />

can contain zero or more variable symbols.<br />

| The character string must not be greater than 1024 characters after substitution of<br />

values for any variable symbols. This includes a character string that constitutes a<br />

sublist.<br />

The character string values in the operands, including sublist entries, are assigned<br />

to the corresponding parameters declared in the prototype statement of the called<br />

macro definition. A sublist entry is assigned to the corresponding subscripted<br />

parameter.<br />

Omitted Operands<br />

When a keyword operand is omitted, the default value specified for the<br />

corresponding keyword parameter is the value assigned to the parameter. When a<br />

positional operand or sublist entry is omitted, the null character string is assigned to<br />

the parameter.<br />

Chapter 8. How to Write Macro Instructions 307

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

Saved successfully!

Ooh no, something went wrong!