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
 

 

[Solved]GO Back & EXIT Program in Main program

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

New User


Joined: 16 Mar 2005
Posts: 5
Location: chennai

PostPosted: Fri Mar 18, 2005 2:26 am    Post subject: GO Back & EXIT Program in Main program
Reply with quote

1.what happen go back stt in stand alone program.
2.what happen exit program stt in stand alone
Back to top
View user's profile Send private message

ragin

New User


Joined: 20 Feb 2005
Posts: 16

PostPosted: Fri Mar 18, 2005 7:56 am    Post subject: Re: GO Back & EXIT Program in Main program
Reply with quote

Hey dude,
Go back in stand alone program causes ur program to go to the calling statment in ur program.

Exit it will just cause an end to the main program.

Exit is encountered by a period(.),go back dosent have any period till it gets exit.Got it dude??????
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1203
Location: India

PostPosted: Fri Mar 18, 2005 12:36 pm    Post subject:
Reply with quote

Check this:

Code:
+------------------------------------------------------------------------+
?     Effects of various termination statements                    ?
+------------------------------------------------------------------------?
? Termination   ?                            ?                           ?
? Statement     ? Main Program               ? Subprogram                ?
+---------------+----------------------------+---------------------------?
? EXIT PROGRAM  ? No action taken.           ? Return to calling         ?
?               ?                            ? program.                  ?
+---------------+----------------------------+---------------------------?
? STOP RUN      ? Return to calling          ? Return directly to the    ?
?               ? program.(1) (May be the    ? program that called the   ?
?               ? system and cause job to    ? main program.(1) (May be  ?
?               ? end.)                      ? the system and cause job  ?
?               ?                            ? to end.)                  ?
+---------------+----------------------------+---------------------------?
? GOBACK        ? Return to calling          ? Return to calling         ?
?               ? program.(1) (May be the    ? program.                  ?
?               ? system and cause job to    ?                           ?
?               ? end.)                      ?                           ?
+------------------------------------------------------------------------+
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 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
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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