The following code fails to assemble at the AIF statement and gets message
ASMA089E Arithmetic expression contains illegal delimiter or ends
prematurely - .DDOK
MACRO
&LABEL TEST &DD=
AIF (K'&DD LE 8 AND ISSYM('&DD')).DDOK
MNOTE 'INVALID DD ENTERED'
MEXIT
.DDOK ANOP
&LABEL DC C'&DD'
MEND
PROG CSECT
PR
TEST DD=ABC
END
Personally, I can't see any problem. I've read the HLASM Reference Manual
and I believe it adhere to the coding rules.
I can replace the AIF with
&TMP SETA ISSYM('&DD')
AIF (K'&DD LE 8 AND &TMP).DDOK
And all works fine.
Comments ? Do you think it should work ? (Does it for you)?
Regards,
Gary Freestone.