Solved

AS400 RPG usage of MDT

Posted on 2014-03-10
2
569 Views
Last Modified: 2014-03-11
I am doing maintenance on a RPGIII program.  I need a way to determine if the user changed a field on the screen (not a subfile).  The keyed value can be the same as the originally displayed value (or different) but I need to know it was keyed and not just left.

I thought I could use the Modified Data Tag for this.  But it appears I am wrong.  :/

Does anyone have any suggestion?  

Thank you in advance.
Lynn
0
Comment
Question by:lynn_harris
2 Comments
 
LVL 27

Accepted Solution

by:
tliotta earned 500 total points
ID: 39919869
By "a field", do you mean "any field" or "a specific field"?

Whichever it is, you'll probably want to use the
CHANGE (Change) keyword. At the record level, the keyword causes the associated response indicator to be set on if any input-capable field in that record format is typed into by the user. At the field level, it's enabled only for those fields that have the keyword.

The documentation link shows simple examples at both levels.

Tom
0
 

Author Closing Comment

by:lynn_harris
ID: 39919893
Excellent.  Thank You! Tom.

(it was two specific fields)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Driver Where can I find IBMDA400 driver software 5 2,314
Jobs on iSeries autoanswer by itselfs. 10 158
iSeries PERL Scripts 7 146
JDEdwards AP Batch 4 44
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now