How to know whether some fields are changed in a display file

2,410 pts.
Tags:
AS/400
AS/400 Display File
I have a display file with 25 fields. I want to know whether some value is changed when user hits enter. Since I have many fields in display file, taking each one and comparing with the file field is a difficult task. Any other suggestions?

Software/Hardware used:
As400, RPG
ASKED: February 7, 2013  5:07 AM
UPDATED: February 7, 2013  1:17 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    First, you would only have to make one comparison. All of the fields can be compared at once to see if anything changed. The values can be held in a data structure that can be compared to a saved version of the data structure.   You should also study the CHANGE (Change) keyword for display files. For 25 fields, you would possibly want to use the keyword at the record level.   The keyword does not tell you if input values are different from the output values. It only tells you if they have been changed. They might have been changed and then changed back to original values.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following