I need to run a job which creates catalog entries to file, gdg, generation files. All the steps to execute even if error or abend, any return code.
What Cond parameter I need to use and where I have to use.?
[ Post made via Android ]
Execute every step even if there is an abend?
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Execute every step even if there is an abend?
Why do you need more than one step? And what abends are you anticipating that you "have" to handle? If an operator cancels your job, you'll get an S222 (most likely) abend that prevents any further execution -- no matter what you have coded in your JCL. So from that sense, you CANNOT have your code execute every step even with abends since some abends stop processing of the job immediately. And what have you tried so far and how do the results you're getting not meet your needs?
A terminology note: z/OS has files on tape and in Unix System Services. Everything else is a data set.
A terminology note: z/OS has files on tape and in Unix System Services. Everything else is a data set.
Re: Execute every step even if there is an abend?
I have used COND=EVEN on JOb card but it did not work.
- Akatsukami
- Global Moderator
- Posts: 122
- Joined: Tue Oct 20, 2015 3:20 am
- Location: Bloomington, IL
- Contact:
Re: Execute every step even if there is an abend?
Unsurprising, as the fine manual indicates that EVEN and ONLY are not available to the COND parameter on the JOB statement, but only on the EXEC statement.
"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli
Re: Execute every step even if there is an abend?
You have failed to answer Robert's query as to why you need separate steps. You have not even specified how you are doing this task. If you are doing it using IDCAMS then you only need one step. As the last IDCAMS command you can code SET MAXCC=0 - or whateveer the syntax is. That will return a zero return code to your job.
Regards
Nic
Nic
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute