Maybe if you put an indicator on the INVITE keyword
You 1st set it ON, then READ dspf
If timing out (Status-1331) then you set INVITE indicator OFF and re-READ dspf
*Maybe* (didn’t test it) that would return any data typed by the user
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Javier Sanchez
Sent: Wednesday, August 11, 2021 11:51
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Using a timeout with display files
Caution: This email originates from outside of Fresche | Attention: Ce message provient de l'extérieur de Fresche
Dear friends:
A few weeks ago, I inquired about something related with the subject, to which I could achieve what I was looking for.
The goal was to allow the user to type in data on a few display fields within a given period of time (say 30 seconds). If that period of time went off, then control is given back to the program and take some actions.
Of course, we're talking about an RPG program here.
Now, since there is no key pressing in this scenario, the input buffer is then NOT updated, so whatever the user could have typed in, none of that can be retrieved.
I've been asked to find out a way to keep that typed in data and have it back to the program as though the user pressed either Enter or another function key. Much the same as the attention keys, I know no input buffer is updated when giving control back to the program. That is what the user does NOT want.
So, is there any way to force the system like "hey, after 30 seconds, could you please pretend the Enter key or (say) F6 key was pressed, so as to have any typed in data available to the program?"
Is that possible? If not, any ideas on how to get that approach?
Thanks in advance.
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
Confidentiality Warning/Avertissement de confidentialité:
This message is intended only for the named recipients. This message may contain information that is privileged or confidential. If you are not the named recipient, its employee or its agent, please notify us immediately and permanently destroy this message and any copies you may have. Ce message est destiné uniquement aux destinataires dûment nommés. Il peut contenir de l'information privilégiée ou confidentielle. Si vous n'êtes pas le destinataire dûment nommé, son employé ou son mandataire, veuillez nous aviser sans tarder et supprimer ce message ainsi que toute copie qui peut en avoir été faite.
As an Amazon Associate we earn from qualifying purchases.