View previous topic :: View next topic
|
Author |
Message |
ursprasanna Warnings : 2 New User
Joined: 15 May 2006 Posts: 20 Location: chennai
|
|
|
|
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 |
|
|
shivani_tech Warnings : 2 New User
Joined: 08 Jan 2006 Posts: 22 Location: UNITED KINGDOM
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|