IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Empty file issue with CONTROL-M


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
zh_lad

Active User


Joined: 06 Jun 2009
Posts: 115
Location: UK

PostPosted: Tue Jul 20, 2010 12:34 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 20, 2010 12:39 pm
Reply with quote

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
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Tue Jul 20, 2010 12:55 pm
Reply with quote

Hi,
At the time of job scheduling, we can specify the normal return codes for the each steps.
Back to top
View user's profile Send private message
zh_lad

Active User


Joined: 06 Jun 2009
Posts: 115
Location: UK

PostPosted: Tue Jul 20, 2010 12:59 pm
Reply with quote

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
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Tue Jul 20, 2010 1:03 pm
Reply with quote

Hi zh_lad,
In the control-M job scheduling itself you can set RC=4 as normal ending code.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 20, 2010 1:10 pm
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Jul 21, 2010 7:02 am
Reply with quote

Hi,

in your job definition, you can specify this

Quote:
ON PGMST stepname PROCST CODES C0004 A/O
DO OK




Gerry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top