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
 

 

stop run & exit program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: stop run & exit program
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: 1452
Location: Chicago, IL

PostPosted: Wed Jul 20, 2005 10:19 pm    Post subject: Re: stop run & exit program
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    Post subject: Re: stop run & exit program
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions 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