There is no OS system function that does what you want.
You need to do you own code to check if someone or something else has changed the data.

Never ever lock records for a long time, such as waiting for user input in a maintenance function. Although this is sometimes done.

I you really must detect data has changed then keep the original data in a DS.
Just before updating retrieve the data and compare it with the saved DS. There are efficient ways to code this and it is fairly simple to do.
If you detect a change then send a warning message to the user.

In my experience it was very rare that the message was ever sent, and when it was sent it showed up a user procedural error.

In the end I stopped coding for the change detection and simply adopted the position of allow the changed data to be changed again.
In the case of any questions the audit logs showed what happened and the users were satisfied with the way the programs worked.

Frank Kolmann


On 21/05/2022 1:49 am, jerry ven wrote:
I mean when there is a subfile displayed on the screen with some field
heading let's say 'XYZ' and then we change any value of this field on the
screen either through entry or during maintenance then how can we return
warning message just for example 'Field override' and the field whose value
gets changed then after changing it's value whn we press enter on the
screen then it should be highlighted in white colour plus that warning at
bottom of that subfile page should be displayed.

Also if that specific field('XYZ') value is already zero , then even if we
override it with another zero value then no such warning or colour should
be highlighted for this zero value.


Thanks.

On Thu, 19 May 2022 at 22:34, jerry ven <jerryven95@xxxxxxxxx> wrote:

What about SFLNXTCHG or PUTOVER ?

Thanks

On Thu, 19 May 2022 at 22:16, x y <xy6581@xxxxxxxxx> wrote:

Either turn on CHANGE or MDT for each field you're watching.

On Thu, May 19, 2022 at 9:38 AM jerry ven <jerryven95@xxxxxxxxx> wrote:

Hi,

Suppose if there is a field which is equal to override and user
overrides
it in entry or maintenance then how to return warning message indicating
"Field Override"


Warn users if any field value ( above specific field value) is
overridden
but if that specific field value is zero, then no warning.



Thanks
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-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

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-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



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