Batch READ command fails with error message CAWA2103E DDNAME SYSUT1 open failed: DD Not Allocated error. How can I correct the CAWA2103E error?
search cancel

Batch READ command fails with error message CAWA2103E DDNAME SYSUT1 open failed: DD Not Allocated error. How can I correct the CAWA2103E error?

book

Article ID: 11075

calendar_today

Updated On:

Products

File Master Plus for IMS File Master Plus for DB2 for z/OS

Issue/Introduction



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?

 

Environment

Z/OS

Resolution

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.

Additional Information

CA File Master Plus r9.1 - Command Syntax Rules and Comment and Continuation Rules section.

 

CA File Master r10 - Command Syntax Rules section and Comment and Continuation Rules section.