Adding a call to a new program via RPGLE

5 pts.
Tags:
Display File
RPG Display File
RPGLE
RPGLE Program
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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?

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CharlieBrowne
    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?
    41,370 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following