Something interesting/confusing I noticed today.

The HLASM Language Reference documents the continuation column as 16.

For an instruction this works:

L     R10,4(,R1)        comment ....                                       x  
<'x' in column 72>
     continued here   <the 'c' starts in column 16>

For a macro:
 
SAVE  (14,12),,test      SAVE AREA comment ...       X  <'X' in column 72>
       continued comment    <'c' in column 16>

This generates message 

** ASMA432W Continuation statement may be in error - comma omitted from 
continued statement.
          
After carefully reading Chapter 2 in HLASM Reference, in section 'continuation 
lines', there is this:

"2. Continue the statement on the next line, starting in the continue column 
(column 16). Columns to the
left of the continue column must be spaces. Comment statements can be continued 
after column 16.
If an operand is continued after column 16, it is taken to be a comment. Also, 
if the continuation-indicator
field is filled in on one line and you try to start a new statement after 
column 16 on the next line, this
statement is taken as a comment belonging to the previous statement."

So changing to

SAVE  (14,12),,test      SAVE AREA comment ...       X  <'X' in column 72>
       continued comment    <'c' in column 17>

allows the assembly without the ASMA432W  message.   But I see you can suppress 
the message with FLAG(NOCONT).

I just thought it was odd that the continued comments column is different for 
an instruction vs a macro.

Reply via email to