Exiting a Progress bar DDS/RPGLE

Tags:
#AS400 #RPGLE #as400
Hello everyone; I am stuck. I have a progress bar running on a FOR loop and it needs to run until this input file that the FOR loop reads to exit is updated properly. if this input file  never get updated properly, the FOR loop continues and no way to exit the program. I want for the user to press enter or F3 to exit the screen at any time while the progress bar is running, if necessary. But because I am doing a WRITE to the record format only, it does not recognize a command key being pressed. Does anyone know what I could do or maybe I am taking a wrong approach. Thank you so much
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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.
  • ToddN2000
    Can you post you code for the progress bar and the FOR loop? It will help us get a better understanding.. Another question is what is the progress bar measuring? If you have a loop waiting on an update, I don't see how you can measure the progress if there is do definitive end point. 
    132,840 pointsBadges:
    report
  • TheRealRaven
    Considering a WRITE followed by READ with a timeout. If no input, continue.
    35,190 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: