HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Model statements

HLASM Language Reference
SC26-4940-06

Model statements are statements from which assembler language statements are generated during conditional assembly. They let you determine the form of the statements to be generated. By specifying variable symbols as points of substitution in a model statement, you can vary the contents of the statements generated from that model statement. You can also substitute values into model statements in open code.

A model statement consists of one or more fields, separated by one or more spaces, in columns 1 to 71. The fields are called the name, operation, operand, and remarks fields.

Each field or subfield can consist of:
  • An ordinary character string composed of alphanumeric and special characters
  • A variable symbol as a point of substitution, except in remarks fields and comment statements
  • Any combination of ordinary character strings and variable symbols to form a concatenated string

The statements generated from model statements during conditional assembly must be valid machine or assembler instructions, but must not be conditional assembly instructions. They must follow the coding rules described in Rules for model statement fields or they are flagged as errors at assembly time.

Examples:
LABEL    L               3,AREA
LABEL2   L               3,20(4,5)
&LABEL   L               3,&AREA
FIELD&A  L               3,AREA&C

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014