Ah ha
Its one user at a time
Completely missed that
Now it makes sense

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of JRusling@xxxxxxxxxxx
Sent: Monday, January 28, 2019 3:36 PM
To: RPG programming on the IBM i(AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: [EXTERNAL] Re: How can i test, from rpg, if a display file is in use?

Unsure about Jose's intent but. . .

When i use this method, it's to insure that only -one- user at a time, can use the process/program.
I create a data area with the same name as the pgm in a common library.
When an additional user tries to use the pgm, if the data area exists, someone else is using the program.
If the data area doesnt exist, the new user can use the program.
(of course, this is when the data area would be created, as well as deleted upon exit)


I'm trying to work out how using a data area will tell you when he display file is NOT being used For example - 28 separate users sign on and use this display file at different times - but all 28 end up using the display file at once Then - they come out of the display file - all at once - or one after the other How do you know when no one is using the display file via a data area

Alan Shore
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
This is the RPG programming on the IBM i (AS/400 and iSeries) (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@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

This thread ...


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

This mailing list archive is Copyright 1997-2019 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].