Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Empty file issue with CONTROL-M

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
zh_lad

Active User


Joined: 06 Jun 2009
Posts: 101
Location: UK

PostPosted: Tue Jul 20, 2010 12:34 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 20, 2010 12:39 pm    Post subject:
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: 210
Location: Cochin/Kerala/India

PostPosted: Tue Jul 20, 2010 12:55 pm    Post subject:
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: 101
Location: UK

PostPosted: Tue Jul 20, 2010 12:59 pm    Post subject:
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: 210
Location: Cochin/Kerala/India

PostPosted: Tue Jul 20, 2010 1:03 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 20, 2010 1:10 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Wed Jul 21, 2010 7:02 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us