5 pts.
 Adding a call to a new program via RPGLE
I am adding a call from an existing program to a program that I've just written.  I use a command key from the existing program to call the new one.  That works just fine, but when I exit my program it returns to the origianl screen with just the data on the screen.  I don't know if it's a display file keyword I'm missing or an issue with a return statement on my called program.

Software/Hardware used:
RPGLE
ASKED: January 5, 2011  7:37 PM
UPDATED: January 21, 2011  3:09 PM

Answer Wiki:
Hi, did you set on the INLR indicator before exit your program? It is not clear what screen you are viewing after exit the program, it is the new program or the existing program screen?
Last Wiki Answer Submitted:  January 21, 2011  3:09 pm  by  Mariodlg   2,790 pts.
All Answer Wiki Contributors:  Mariodlg   2,790 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Are you saying your are running program A and then do a CMD key to call program B.
Then when you F3(exit) from program B, you want also exit program A?

 32,915 pts.

 

First thing to verify is whether or not the display file was created with RSTDSP(*YES) specified or not. This can be checked by running DSPFD FILE(filename) TYPE(*ATR) against the display file. Scrolling down to the ‘Display Attributes’ section, there should be a line showing ‘Restore display . . .’ with either *YES or *NO as the value.

If it shows *NO, you might be able to change the attribute with CHGDSPF FILE(filename) RSTDSP(*YES).

If that doesn’t help, more details will be needed.

Tom

 108,280 pts.