× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



DDS manual says:
" On a read operation from invited devices operation to a display file, only data from devices with an
outstanding invite operation are considered. The input operation waits for data from any of the invited
devices. (See the WAITRCD parameter on the Create Display File (CRTDSPF) and Change Display File
(CHGDSPF) commands.) If none of the invited devices responds before the wait time ends, a notify
message is sent and no data is returned."

So, no data is returned when the notify message (Status=1331) is sent


-----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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.