Posted: Thu Dec 29, 2011 5:12 pm Post subject: To introduce the RC 4 during the run time of the cobol DB2
Previously in a paragraph of cobol program, if the abend occurs we were going to exit-paragraph and closing the program. Now, if the abend is occured, we have to drop that particular record and process the remaining items. Till now its ok. But the thing is, when during the run time if for a record abend occurs and processes the next records, then the CC should not be 0. It should be other than 0 some low value. So, how to introduce the CC other than 0 acceptable value in the cobol program. I am not talking about the CC during the compile time, but in the run time.
Joined: 09 Aug 2008 Posts: 1631 Location: Mumbai, India
Posted: Fri Dec 30, 2011 4:21 pm Post subject:
Now, if the abend is occured, we have to drop that particular record and process the remaining items.
May be you are not using your words carefully enough - if there is an abend, your program just not have any control on it - you might want to say, that if some certain conditions match -- end the program with different RC other than 0. If so, look what Dick has said.
And steps, in which programs get executed, have RC (return-code) not CC. What is CC, by the way, in this context? _________________ Regards,
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum