Hi Vinothini,
I am assuming that you are running a command job calling the script you mention. Autosys will return the exit code from the script, not from what the script calls. Is the problem that the exit code of 2 is showing as a failure or that you are expecting a return code of 0?
If it is getting a failure for the eit code of two just update your job to use either max_success or success_codes to have it return a success.
If the problem is the unexpected exit code, I would suggest working with the application team and see if the logs contain any information on why a 2 was returned.
Regards,
Mike
Original Message:
Sent: Feb 27, 2025 02:12 AM
From: vinothini G
Subject: Autosys Job Exit code issue
Hi Team,
Greetings..!
Help is appreciated here..!
I have an mainframe batch job runs in Heirloom EBP(we use script files to set the Return code of job as 0 to 7 as success and 8 as failure) not in Z/OS.I am facing an issue of below..
I have a job "Job A" throwed an false alert of Exit code "02" in Autosys, though the job ran with RC(return code) 0 in EBP.
please let me know any issue from Autosys scheduling perspective?
Thanks,
Vinothini