You resolve the S122 abend the same way you resolve any abend -- look up the messages in the appropriate Messages and Codes
manual, determine what they tell you about what your job did, and proceed to correct the issue. If you had looked up the S122 in the System Codes
manual, you would have found
Explanation: The operator canceled the job and requested a dump. System Action: The system ends the job. The system writes a dump to the data set described by the SYSABEND, SYSMDUMP or SYSUDUMP DD statement in the canceled job step. Application Programmer Response: Find out why the operator canceled the job. Correct the error(s). Resubmit the job. Source: Master scheduler
So you might want to proceed by determining why the operator canceled the job. Most likely the job was canceled because the job was using up all the spool space, which is NOT a good thing. However, you need to contact your site support group to verify the reason the job was canceled -- nobody on this forum can possibly tell you that; only someone working AT YOUR SITE could.