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

stop run & exit program


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mf_me

New User


Joined: 18 Jul 2005
Posts: 3

PostPosted: Wed Jul 20, 2005 10:03 pm
Reply with quote

1. what is the difference between stop run n exit porgram,

2.Is it true that at the end of the program we should ideally use Exit program instead of stop run.

3. If a program that is not being called by any other program has go back coded, will it go in a loop ?

4. and should we code go back in all called modules?
is it true that if we code stop run, the control will not be passed to the caling module
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Jul 20, 2005 10:19 pm
Reply with quote

Hi mf_me,
Quote:
1. what is the difference between stop run n exit porgram,

http://www.ibmmainframes.com/viewtopic.php?t=1776
http://www.ibmmainframes.com/viewtopic.php?t=159

Quote:
3. If a program that is not being called by any other program has go back coded, will it go in a loop ?

No...Links have details regarding that......

Regards,

Priyesh.
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Thu Jul 21, 2005 3:58 pm
Reply with quote

With GOBACK , the control will go back to the program which is calling and if it is not called by any program the control will return back to the system.
It wont go in a LOOP.

Thanks & Regards
Shobam
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Jul 21, 2005 10:51 pm
Reply with quote

Hi MF_Me!

Quote:
3. If a program that is not being called by any other program has go back coded, will it go in a loop ?

If we code Go Back in a stand alone program it will not go into loop. Just the control goes back to OS. Thats it. But generally we follow coding Go Back in any program. So in future if you need to call this program by another, you dont have to worry and even there is no harm in coding Go Back in a stand alone program

Quote:
4. and should we code go back in all called modules?
is it true that if we code stop run, the control will not be passed to the caling module


Yes. We should code Go Back in all called modules. If not the control will not be transfered to calling program.

You can understand the meaning, by the wording even. Stop Run indicates stop the run(control)..And Go Back indicates, return the control back.

Hope this helps you.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
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
No new posts Use of Perform Thru Exit COBOL Programming 6
Search our Forums:

Back to Top