Using READ batch command generates a syntax error return code 16 and generates message CAWA2103E.
READ, INFILE(DD01), cause return code 16.
*** CAWA2103E DDNAME SYSUT1 open failed: DD Not Allocated
How can I correct this CAWA2103E error?
The following batch job READ statement generates a syntax error return code 16 and generates message CAWA2103E.
READ, INFILE(DD01),
*** CAWA2103E DDNAME SYSUT1 open failed: DD Not Allocated
For example
READ, INFILE(DD01),<<<<<<<< SELRECIF(8,0,eq,C'batch'), ANDIF(6,1,eq,C'1',C'2'), WRITE(DD02)
*** CAWA2103E DDNAME SYSUT1 open failed: DD Not Allocated *** CAWA2518E Error during open of SYSUT1 *** CAWA2550I READ completed RC set to 16 High RC = 16 CAWA2000I Utility ending, Max CC=16
But if you span the same READ command over two lines then the command is successful. For example
READ, INFILE(DD01), SELRECIF(8,0,eq,C'batch'), ANDIF(6,1,eq,C'1',C'2'), WRITE(DD02)
The syntax for the command READ, INFILE(DD01), is incorrect because a comma following the COMMAND is a continuation character.
So all characters behind it should be considered a comment.