I want to use INPUT to read a JCL card. The input is free-text. A comment, which sometimes includes a COMMA. English text. No matter what I try, I can’t suppress the delimiter to become nothing. I tried ID=’ ‘, which actually makes the delimiter a space, which makes it worse. ID=’’ won’t compile. It forces me to use a delimiter, and I don’t want one!
Here is says making ID = blank will disable it, but it doesn’t work:
DEFINE DATA LOCAL
1 #A (A1) INIT <H’B2’>
1 #PARM (A80)
END-DEFINE
FORMAT LS=81
SET GLOBALS ID=#A
INPUT #PARM
WRITE #PARM
END
It looks like you have to use a displayable character for ID= but you can improve your chances of it working by using a character that is unlikely to have been used.
You cannot use any hex character like FF otherwise you get
NAT1115 Invalid alphabetic value for SET GLOBALS statement.