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/ GO BACK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
ursprasanna
Warnings : 2

New User


Joined: 15 May 2006
Posts: 20
Location: chennai

PostPosted: Wed May 17, 2006 12:02 pm    Post subject: STOP RUN / EXIT PROGRAM/ GO BACK
Reply with quote

I have doubt in these commands.

STOP RUN has to be used in the mainprogram only ..but instead of STOP RUN if i use EXIT PROGRAM will that be accepted or not will it lead to any abend.

In the same way the EXIT PROGRAM command has to used only in the called program . But instead of that if you use STOP RUN will it be accepted . If accepted will be control will go back to the main program or the o/s . one more on this , i would like to know whether the values of variables which were passed from the main program to the sub program will be reflected in the main program if the coded as STOP RUN in the sub program .
Back to top
View user's profile Send private message

shivani_tech
Warnings : 2

New User


Joined: 08 Jan 2006
Posts: 22
Location: UNITED KINGDOM

PostPosted: Wed May 17, 2006 12:42 pm    Post subject: Re: STOP RUN / EXIT PROGRAM/ GO BACK
Reply with quote

case1}}}:--when u se stop run in main prg control goes to system...if u se exit program it will give an error and prog will go in loop ...ya but when u use goback it gives the same result as stop run



cas2}}}:---when u use stop run in the sub prog how will it give control to the mainprg so as result u'll not get the desired result..
but when u use exit prg as well as goback proper linkage with the main prg happens..


i think i gave you the requisite answer,,,,,plz do let know if i m wrong and update me...
thanks and rgds
shivani sinha
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1228
Location: Israel

PostPosted: Wed May 17, 2006 1:50 pm    Post subject:
Reply with quote

As we are in the CICS forum, we do not want to use GOBACK, STOP RUN or anything like this.
Instead, we must give control back to CICS by using:
Code:
    EXEC CICS RETURN
    END-EXEC


MAPFAIL occurs mostly when the users hits the CLEAR key.
It is possible to write like this:
Code:
    EXEC CICS RECEIVE
        MAP() MAPSET() INTO()
        NOHANDLE
    END-EXEC

    IF EIBAID = DFHPF3 OR DFHCLEAR THEN
        PERFORM 9999-USER-FINISHED-WORKING
    END-IF
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
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


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