AS/400 F9 Retrieve Logic

130 pts.
Tags:
AS/400 development
AS/400 F9
AS/400 Function Logic
Hello, Hope every one doing well. I am planning to implement F9 “Retrieve” functionality in my application. It would be great if any one can provide me the logic to implement the same. Hope you guys can guide me in this regards. Thanks & Regards Bibin George

Answer Wiki

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

Hi,

Can you please be more clear as to what you are intending to retrieve. Or are you looking for usage of function keys.

Hi Bibib,
You need to be more specific as to what you are trying to do and where you wish for the F9 to be applied. What are you trying to retrieve?

Regards.
Gopal

Hello Gopal,

I am sorry for not been descriptive. Since my application is command driven one (Not menu driven), I am planning to implement F9 functionality in my application to retrieve the previously entered commands. Keep in mind that more than one user can access the application at a time.

It would be great if anyone can suggest me some logic to implement this functionality.

Thanks & Regards
Bibin George

Discuss This Question: 5  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
  • Koohiisan
    How about this: whenever a user enters a command, save it to a physical file with the following fields--1) user name, 2) timestamp, 3) command text. Then, use F9 to read from that file in descending timestamp order to get the commands entered by that user. Multiple users would not be affecting each other in this way as everyone would have their own 'most-recently-used commands list'. Just a thought. Oh, and when they exit, delete the records that pertain to them if you want. Or, once you reach the number of old commands you want to limit them to (10, 50, 100?), you could, after every new command entered, read the oldest timestamp record for that user and delete it. Again, just a thought.
    5,020 pointsBadges:
    report
  • Gilly400
    Hi, I would suggest putting any such file in the QTEMP library. That way you won't need to remove anything at the end of the job. This would also be better for performance - if you have a lot of users with lots of commands this could get to be quite a big file to read through. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • WoodEngineer
    Your request sounds familiar. I believe that a while back one of the iSeries journals or newsletters adddressed this issue. They showed a way to do what you want with little or no programming. Its been a while . . . I took a quick look but did not find the article. Might be worth a few minutes with Google.
    6,490 pointsBadges:
    report
  • Gilly400
    Hi, If I recall correctly, there used to be some way of retrieveing the last entered command from the joblog using a RCVMSG command. Unfortunately this stopped working if you did a CHGJOB with no logging.... Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • WoodEngineer
    F9 retrieve works when we use IBM menu utility in SDA.
    6,490 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