Issue:
Calling DSNUTILB (DB2 utility) from a processor gets an S04E abend.
Environment:
All supported Endevor releases
Cause:
IBM states that DSNUTILB is only supported by them when it is run as a JOB step task. Because of the JOB step task requirement, Endevor cannot attach the program from within a processor.
Workaround:
Externalize the DSNUTILB step
1: Submit Job1 to generate the element with PROC1:
1.1: Exec PROC1 untill the step DSNUTILB
1.2: Submit Job2 (DSNUTILB) via internal reader
1.3: Wait for resource (File created by Job2)
1.4-1: End PROC1 OK if resource created
1.4-2: End PROC1 KO if resource not created in a defined space of time.
2: Submit Job2 by Job1 via internal reader:
2.1: Exec DSNUTILB
2.2: If DSNUTILB OK: create a file (resource in wait by Job1)
Additional Information:
To vote for an enhancement to Endevor processor so that the DB2 utility can be called directly, go here: https://communities.ca.com/ideas/235732734