IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

[Solved]GO Back & EXIT Program in Main program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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: 1210
Location: India

PostPosted: Fri Mar 18, 2005 12:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top