View previous topic :: View next topic
|
Author |
Message |
zh_lad
Active User
Joined: 06 Jun 2009 Posts: 115 Location: UK
|
|
|
|
Hi,
When the file is empty we have no zero RC and as result job end with non zero CC (3 or 4).
We us Control-M, is there any why we can specify that CC=4 is successful run of the job, rather holding the batch cycle.
Many thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DO NOT append your thread onto the end of an existing one, especially one that has been quite happily dormant for 5 years.
Start a new thread
What does it say in the manuals about this. You, as a BMC customer will have the manuals.
Have you considered resetting the RC to zero if the file is empty. |
|
Back to top |
|
|
bipinpeter
Active User
Joined: 18 Jun 2007 Posts: 213 Location: Cochin/Kerala/India
|
|
|
|
Hi,
At the time of job scheduling, we can specify the normal return codes for the each steps. |
|
Back to top |
|
|
zh_lad
Active User
Joined: 06 Jun 2009 Posts: 115 Location: UK
|
|
|
|
Thanks for replying. I opened dead thread because my query was continuation of existing topic.
I can not reset RC to 0 because I am executing following steps bases on RC.
Three steps:
1. Icetool - empty file check and reset rc4
2. If step.rc = 0, execute step 2 Pgm=COBOL program
3 else run step3 executing Sort
Whenever file is empty jobs ends with CC=4. As a result Controll-M treats it as Not Ok job and hold the batch cycle.
Can we do something in jcl to alter final CC or tweak job's setting in CM to treat 4 as successful? |
|
Back to top |
|
|
bipinpeter
Active User
Joined: 18 Jun 2007 Posts: 213 Location: Cochin/Kerala/India
|
|
|
|
Hi zh_lad,
In the control-M job scheduling itself you can set RC=4 as normal ending code. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
zh_lad wrote: |
or tweak job's setting in CM to treat 4 as successful? |
Yes, but as YOU have the manuals available and most people out here do not, it means that you will have to read the manuals and find out. Or maybe google might help. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
in your job definition, you can specify this
Quote: |
ON PGMST stepname PROCST CODES C0004 A/O
DO OK
|
Gerry |
|
Back to top |
|
|
|