Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
[Solved]Doubt on exit para.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
rachel

New User


Joined: 09 Mar 2005
Posts: 13

PostPosted: Tue Jul 19, 2005 10:47 am    Post subject: Doubt on exit para.
Reply with quote

Hi,



I have a code ie, perform para1 thru para-exit1. I want to know whether it is a blunder if i introduce another para which is an exit para ?
Are so many exits allowed in between these para1 and para-exit1?
icon_rolleyes.gif


Need reply soon , somebody please help.
Back to top
View user's profile Send private message
References
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 279
Location: India

PostPosted: Tue Jul 19, 2005 11:09 am    Post subject: Re: Doubt on exit para.
Reply with quote

Hi,

All that "exit" do is Nothing. !

exit in this sence is just a placeholder.

There is no limitation on the number of exits you can have in your cobol program. But when used in the para, it should be the only statement.

However, as a good programming practice, you should not be puttting exit statements inside para1 thru para1-exit. It reduces the readlibiltiy of your program.

Please let me know if I have not described it properly. icon_smile.gif
Back to top
View user's profile Send private message
rachel

New User


Joined: 09 Mar 2005
Posts: 13

PostPosted: Tue Jul 19, 2005 11:31 am    Post subject: Re: Doubt on exit para.
Reply with quote

THANK YOU
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1