I have many menu options that simply execute a *CMD with various parms. If I key the command on the *CMD line, I can use F9 to retieve previous commands I ran. But it does not show the *CMD and parms I ran from menu options.
Is there something I can do so that my command executed from a menu can be retrieved via F9 key?
Hal
Software/Hardware used:
ASKED:
November 19, 2010 8:12 PM
UPDATED:
February 22, 2011 7:20 PM
Is there something I can do so that my command executed from a menu can be retrieved via F9 key?
You’ll probably need to change your menus to work differently. Have them run so that your commands are processed as *RQS (Request) messages by your job. The <F9> key retrieves *RQS messages from your job’s message queue. A method that worked without changing your menues could affect menus that didn’t belong to you, menus that had commands that users shouldn’t see nor be able to change by recalling and prompting. (Not that that’s a big deal.)
For some info on request-processing programs, see Writing request-processor procedures and programs. An added note is at Determining if a request processor exists.
Tom
Thank you for your reponse Tom. I have no problem changing the menu. It is a *PNLSRC menu. But I do not know how to go about changing the commands executed to be a *RQS message. My commands have prompts that must be filled in… it is the command after the parms have been filled in that I would like to retrieve via F9 key. Can you give me an example as to how I would do this… Please and Thank you.
If you’re simply running UIM *PNLSRC menus, then maybe all you need to do is change your job to log history. A job’s LOG() level needs to be at least ’3′ before commands are saved.
Display the job to see what the current LOG() level is. If it’s ’0′, ’1′ or ’2′, then try CHGJOB LOG(3 00 *MSG). See if commands become logged after that.
In order to ‘retrieve’ things, they must first be ‘stored’. A job’s logging level can determine what kinds of messages are stored. The help for the CHGJOB LOG() parameter shows that level ’3′ and higher will store “request messages”.
Tom