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



Hard to believe you've never been bitten by overlapping updates.
I would not trust that - But, if it works for you.....


Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power



-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Frank Kolmann
Sent: Thursday, August 18, 2022 6:53 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Using a timeout with display files

Interesting.  Good Stuff.
Would have been good for me to use.

Except for case 1).
I never ever coded to hold record locks not even for editing.
Always released a record immediately after read.
Read and Lock just before update, the update released the record lock.
In the beginning I coded fancy check-for-changed-data before update, but
I found this really was not needed.

Frank


On 19/08/2022 10:50 am, Reeve wrote:
1) When you're using pessimistic updating (i.e., the record is locked
while it's being edited). If the user doesn't touch the screen after 90
seconds, the timeout fires, the changes are rolled back, and/or the record
is unlocked.
2) When you want to refresh a status display; in my case, the display
shows which trucks are scheduled to be dispatched next. When the timeout
goes (every 60 seconds), I reload the subfile with the current/updated
statuses and color anything past its scheduled dispatch time. It's easy
for the user to glance at the display and see the current status--no
keyboard entry required!
3) Eye candy for executives: I did one that showed data entry statistics
by location and they were transfixed by watching the numbers change as EDI
and manual order entry rose fast in the early evening and then slowed later
as orders were priced, manifested, and dispatched. Don't write to me and
tell me this is a no-brainer with a web app; I know it. But I was doing
this in the early 80's.

--reeve

On Thu, Aug 18, 2022 at 4:10 PM Don Brown via RPG400-L <
rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

Giday Frank,

Just curious if you would share a few use cases of your utility ?

I can see a lot of great work but I am not having the light bulb moment as
to the problem the solution provides.

Cheers

Don



From: "Frank Kolmann" <Frank.Kolmann@xxxxxxxxx>
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Date: 18/08/2022 09:54 AM
Subject: DSM example (was Using a timeout with display files)
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



Hi Patrik

DSM example program. DSMFD.

I have this code on GITHUB. (Is it just me or is GITHUB so very very
difficult to use?)
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFrankKolmann%2FFranksRPG&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=AwMljTQIvYxslB%2F1VbCN1%2BUirH45naI5cVptnvLWEK8%3D&amp;reserved=0

It is a program that shows on a screen what a DDS file looks like using
the compiled object.
It uses DSM to show. Also there is a progam that uses the QDFDRTVFD api
to get the DDS info.

Regards
Frank



On 16/08/2022 7:07 pm, Patrik Schindler wrote:
Hello Javier,

Am 16.08.2021 um 00:04 schrieb Javier Sanchez
<javiersanchezbarquero@xxxxxxxxx>:
I've been dealing with the DSM documentation, but this is barely the
API prototypes and the several data structures and constant values that
these use. There are no significant examples and what I've found on the
Web is also poor material.
So it's not just me. :-) Good to know!

I'll have to wrap up my sleeves and try.
I'd love to see some DSM examples somewhen, if you're willing to share
your insights!
Since the input buffer is still there, that's the right moment to
invoke the *QsnReadImm* API which is a non-AID-generating read input from
the screen, and that should probably bring me the data that I'm expecting:
the one the user may have typed in.
This proves (in a twisted way) my guts feeling of "there must be a
possibility to do this". You know, the OS can set the message waiting
indicator on a terminal at any time, without intervention from the
currently running application. This made me think there *must* be an
asynchronous way to obtain data from the terminal without any read or
write in the usual way.
:wq! PoC



--
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://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=744jZZ7gtMZ7VcEsd%2BVry1ymldKQgHitfvRGsuzgyps%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=mJHbcsYNpkpxRZc%2FZki5BimbsLyjEo6Ly0btq3pAgxk%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=4sP7EVowxLhESaoWZ%2FOMm9htbJiCNYnXsyfi7wYP7D8%3D&amp;reserved=0




--
This email has been scanned for computer viruses. Although MSD has taken
reasonable precautions to ensure no viruses are present in this email, MSD
cannot accept responsibility for any loss or damage arising from the use of
this email or attachments..
--
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://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=744jZZ7gtMZ7VcEsd%2BVry1ymldKQgHitfvRGsuzgyps%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=mJHbcsYNpkpxRZc%2FZki5BimbsLyjEo6Ly0btq3pAgxk%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=05%7C01%7C%7C82a09e3ae3eb42acc9a008da818596bd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964708005376600%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=4sP7EVowxLhESaoWZ%2FOMm9htbJiCNYnXsyfi7wYP7D8%3D&amp;reserved=0



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.