F9 Retrieve command key

360 pts.
Tags:
CMD
CMD Restriction
CMD Source
COMMANDS
F9 Previous commands *RQS
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

 

Answer Wiki

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

Our log level is set to 4 and F9 retrieves previously keyed commands from my UIM menus just fine. As Tom pointed out, a level of 3 might be all you need.

Display Job Definition Attributes

Job description . . . . . . . . . . . . . . . . . : DAVEJOBD
Library . . . . . . . . . . . . . . . . . . . . : QGPL
Job queue . . . . . . . . . . . . . . . . . . . . :
Library . . . . . . . . . . . . . . . . . . . . :
Job priority (on job queue) . . . . . . . . . . . : 4
Output priority (on output queue) . . . . . . . . : 3
End severity . . . . . . . . . . . . . . . . . . : 30
Message logging:
Level . . . . . . . . . . . . . . . . . . . . . : 4
Severity . . . . . . . . . . . . . . . . . . . : 0
Text . . . . . . . . . . . . . . . . . . . . . : *NOLIST

Discuss This Question: 3  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
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • CoderHal
    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.
    360 pointsBadges:
    report
  • TomLiotta
    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
    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