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: 1232
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 EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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