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
 

 

COBOL doubt: difference of EXIT and EXIT PROGRAM in cobol???

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Ananth Kumar

New User


Joined: 23 May 2007
Posts: 6
Location: bangalore

PostPosted: Wed May 14, 2008 2:06 pm    Post subject: COBOL doubt: difference of EXIT and EXIT PROGRAM in cobol???
Reply with quote

hi all,

I am upgrading a program to NOCMPR compiler from CMPR2 compiler ......

I want to know in cobol..... if i change EXIt to EXIT PROGRAM ... during the above upgrading... what might be the effect?
Back to top
View user's profile Send private message

sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Wed May 14, 2008 2:09 pm    Post subject: Re: COBOL doubt: difference of EXIT and EXIT PROGRAM in cobo
Reply with quote

Ananth Kumar wrote:
hi all,

I am upgrading a program to NOCMPR compiler from CMPR2 compiler ......

I want to know in cobol..... if i change EXIt to EXIT PROGRAM ... during the above upgrading... what might be the effect?


Try the same and let us know the results icon_biggrin.gif
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Wed May 14, 2008 3:19 pm    Post subject:
Reply with quote

as far as i know, EXIT PROGRAM in the called programs transfers the control back to the calling program. i ve no idea what does it actually do in case of standalone programs.
let me know the result....
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Wed May 14, 2008 3:30 pm    Post subject:
Reply with quote

Where do you want to change EXIT to EXIT PROGRAM?

EXIT PROGRAM transfers the control out of the program. EXIT would be used in Exit paragraph where this would be the only statement.
Back to top
View user's profile Send private message
mytags

New User


Joined: 28 Apr 2008
Posts: 63
Location: US

PostPosted: Wed May 14, 2008 4:02 pm    Post subject:
Reply with quote

Hi
As far as my knowledge Exit program we just mention with in a program to make sure the exit of the control from the program.it can be internal or a calling program.
hari
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed May 14, 2008 6:18 pm    Post subject:
Reply with quote

the_gautam wrote:
as far as i know, EXIT PROGRAM in the called programs transfers the control back to the calling program. i ve no idea what does it actually do in case of standalone programs.
let me know the result....
FWIW, in the case of a 'standalone program', the operating system is the 'calling program'.....
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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