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

STOP RUN / EXIT PROGRAM/ GO BACK


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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: 1353
Location: Israel

PostPosted: Wed May 17, 2006 1:50 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


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