#-Line continuation

Use this macro to continue conditional expressions across more than one line. This macro is used instead of the continuation character in column 72 of the previous line.

Format

Read syntax diagramSkip visual syntax diagram#inputline
inputline
is the continuation of a conditional expression and can be one of the following:
  • Whole conditional expression, including those with Boolean connectors
  • Whole test (symbolic assembler instructions or macro tests cannot be split).

Entry requirements

You can only code this macro following a #DO, #IF, or #GOTO macro.

Return conditions

Control is passed to the next sequential instruction.

Programming considerations

  • All labels used in the SPM conditional expression can be no more than 32 characters long. Any additional characters are truncated.
  • You cannot use the # macro with the normal assembler continuation character.
  • You must code a comma (,) immediately after the last operand on the previous line.
  • When you use the #DO macro with a Boolean connector, the Boolean connector cannot be coded as the last operand on the previous line.

Examples

  • In the following example, the # macro is used to continue Boolean connectors.
            #IF   (CLI,0(R4),NL,C'0'),AND,
             #     (CLI,0(R4),NH,C'9'),ORIF,
             #     (CLI,0(R4),NL,C'A'),AND,
             #     (CLI,0(R4),NH,C'Z')
  • In the following example, the # macro is used to continue conditional expressions.
            #DO   WHILE=(R2,GE,R3),
             #     AND,(EBW000,BIT1,OFF),
             #     UNTIL=(FIELD,ZERO)