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.

Symbolic Parameters<br />

A variable symbol<br />

A combination of variable symbols and other character strings concatenated<br />

together<br />

If the DBCS assembler option is specified, character strings may contain<br />

double-byte data, provided the character strings are enclosed by apostrophes.<br />

The allowable results of generation are spaces (if valid) and a character string that<br />

represents a valid assembler, machine instruction, or macro instruction operand<br />

field.<br />

Variable Symbols: Variable symbols must not be used in the operand field of a<br />

ICTL, or ISEQ instruction. A variable symbol must not be used in the operand field<br />

of a COPY instruction that is inside a macro definition.<br />

Remarks Field<br />

The remarks field of a model statement can contain any combination of characters.<br />

No substitution is done for variable symbols appearing in the remarks field.<br />

Using spaces: One or more spaces must be used in a model statement to<br />

separate the name, operation, operand, and remarks fields from each other.<br />

Spaces cannot be generated between fields in order to create a complete<br />

assembler language statement. The exception to this rule is that a combined<br />

operand-remarks field can be generated with one or more spaces to separate the<br />

two fields. Note, however, that if the generated operand field is part of a macro<br />

instruction, the entire string (including spaces) is passed as an operand.<br />

Symbolic Parameters<br />

Symbolic parameters let you receive values into the body of a macro definition from<br />

the calling macro instruction. You declare these parameters in the macro prototype<br />

statement. They can serve as points of substitution in the body of the macro<br />

definition and are replaced by the values assigned to them by the calling macro<br />

instruction.<br />

By using symbolic parameters with meaningful names, you can indicate the<br />

purpose for which the parameters (or substituted values) are used.<br />

Symbolic parameters must be valid variable symbols. A symbolic parameter<br />

consists of an ampersand followed by an alphabetic character and from 0 to 61<br />

alphanumeric characters.<br />

The following are valid symbolic parameters:<br />

&READER &LOOP2<br />

&A23456 &N<br />

&X4F2 &$4<br />

The following are not valid symbolic parameters:<br />

CARDAREA first character is not an ampersand<br />

&256B first character after ampersand is not alphabetic<br />

&BCD%34 contains a special character other than initial ampersand<br />

&IN AREA contains a special character [space] other than initial ampersand<br />

Chapter 7. How to Specify Macro Definitions 253

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

Saved successfully!

Ooh no, something went wrong!