When abend S013-C0 when running a batch job that creates a file to a Spool destination.
ESF553 OPEN FAILED FOR FILE SYSUT2 - RETURN CODE '22' FROM ESF OPEN
IEC141I 013-C0,IGG0199G,FILCAXX2,STEP1,SYSUT2
Release : 14.0
Component : Spool
The return code 22 from ESFOPEN means:
22—Initial open-output request rejected because an undefined file destination was specified.
Possible causes:
- the destination is not defined to Spool
- the parameter DESTVAL=YES is set and the destination is not valid for JES2
Possible solutions:
- Define the NODE to Spool and to JES2 (if JES2 is validating the destinations)
Or:
- Change DESTVAL to NO and recycle the Spool started task