Open code
Conditional assembly instructions in open code let you:
- Select, during conditional assembly, statements or groups of
statements from the open code portion of a source module according to a
predetermined set of conditions. The assembler further processes the
selected statements at assembly time.
- Pass local variable information from open code through parameters
into macro definitions.
- Control the computation in and generation of macro definitions
using global SET symbols.
- Substitute values into the model statements in the open
code of a source module and control the sequence of their generation.
All the conditional assembly elements and instructions can be
specified in open code.
The specifications for the conditional assembly language described in
this chapter also apply in open code. However, the following
restrictions apply:
- To Attributes In Open Code:
- For ordinary symbols, only references
to the type, length, scale, integer, defined,
and operation code attributes
are allowed.
References to the number attribute have no meaning in open code,
because &SYSLIST is not allowed in open code, and symbolic parameters
have no meaning in open code.
- To Conditional Assembly Expressions:
- Table 55 shows the restrictions for different expression
types.
Table 55. Restrictions on coding expressions in open code
| Expression |
Must not contain |
|
Arithmetic
(SETA)
|
- &SYSLIST
- Symbolic parameters
- Any attribute references to symbolic parameters, or
system variable symbols with local scope
|
|
Character
(SETC)
|
- System variables with local scope
- Attribute references to system variables with local scope
- Symbolic parameters
|
|
Logical
(SETB)
|
- Arithmetic expressions with the items listed above
- Character expressions with the items listed above
|
[ Top of Page | Previous Page | Next Page | Contents | Index ]