Retain RPG menu selection on the screen

35 pts.
Tags:
Menu
RPG
Is there a way to retain a menu selection on the screen? If a user selects menu option ' 1 ' I want the number '1' to remain on the screen until another selection is made or another menu is selected.

Answer Wiki

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

One alternative would be to place all the job steps (menu options) in one call program. Use a parameter for the starting step number, save it to a data area. Update the data area after each completed step. If the job errors out you can end the job, fix the problem then restart the job at the step that failed. Upon job completion reset the data area. I worked at a few places that followed this process for year end jobs…

Discuss This Question: 11  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.
  • carlosdl
    More details are needed.

    You want to do that on an application you are developing?
    If so, what programming language are you using?
    What kind of component are you using for the menu?
    What have you tried?
    84,580 pointsBadges:
    report
  • lumberman70
    I have created a menu using SDA (but it could easily be UIM) using RPG. When a menu selection is made the command issues a submit job statement and the menu selection goes away. I would like for the menu selection to stay on the screen until another menu selection is made or the user switches to a different menu.
    35 pointsBadges:
    report
  • pdraebel
    Check the CL or RPG source that the menu created. Also the display file may need a change.
    7,545 pointsBadges:
    report
  • lumberman70
    The menu was created using SDA and there are no display attributes to change. The only way to do what I want would be to create a display file and associated program for the menu - which is what I don't want to do.
    35 pointsBadges:
    report
  • ToddN2000
    If it's a menu object I can't think of a way. Menus are not designed that way by default. If you created a program you could probably load the last menu option selected as a parameter and pass it back to the program before it is re-displayed. What kind of problem are you running into that you would like to have the value retained?
    123,845 pointsBadges:
    report
  • lumberman70
    The menu was built to automate several jobs which get submitted to batch. Very often the menu user does not remember the last option taken which is a concern since re-running the same menu option causes problems. I agree that a display file program may be the only resolution to this issue. Thanks to all who replied.
    35 pointsBadges:
    report
  • pdraebel
    I have developed such a menu to assist in performing a MiMiX switch. Options selected are blanked out and can be no longer chosen.
    7,545 pointsBadges:
    report
  • ToddN2000
    Another possibility would be to hide an option once it has been run to prevent re-selection.
    123,845 pointsBadges:
    report
  • pdraebel
    I think I worked with different colours. Blanking out the options that were already selected. A data area kept track of the options that were chosen should one have to leave the menu to check things.
    The menu could be reset by blanking the data area.
    7,545 pointsBadges:
    report
  • GregManzo
    Or a slightly different tack (and possibly more useful if you have meaningful job names) - When the job is submitted you get a CPC1221 completion message. Show this to the user! 
    ie: something at the bottom of the screen that says "Job 933378/USER/JOBNAME submitted to job queue QBATCH2 in library QGPL."
    2,895 pointsBadges:
    report
  • GregManzo
    Of course if that doesn't work, maybe you just need a baseball bat...
    2,895 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.

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

Following

Share this item with your network: