Page 1 of 1

5250 Bridge & MDT

Posted: Mon Feb 01, 2010 7:59 pm
by ahakhan67
Am using the 5250 demo application (with some modifications) to web enable an RPG screen. The screen uses the CHANGE keyword on a number of fields. The problem that I am having is that the CHANGE indicator gets set even when the fields are not edited, I modified the program to call only setInputField($fieldId, $inputField) only for fields that have changed values, but still the CHANGE indicator gets set in RPG program.
Did some research and the IBM manual states that a bit called the Modified Data Tag (MDT) is set in the workstation function when a field is edited on the terminal so how can I debug to find out if this is going on? and more importantly does the 5250 Bridge API handle the MDT bit correctly.

Re: 5250 Bridge & MDT

Posted: Wed Mar 03, 2010 11:45 pm
by rodflohr
This is a known issue. The 5250 Bridge API updates all input fields, causing the Web Facing Server to see them as changed. Zend R&D is working on improvements to better handle this in a future release.

As a workaround, remove the CHANGE keywords from the display file, making note of which change indicators correspond to which changed fields. In the RPG program, just before the EXFMT, save the values of the input fields into work fields. After the EXFMT, compare the input values to the work fields. For any field that has changed, set the corresponding change indicator.

Re: 5250 Bridge & MDT

Posted: Fri Feb 16, 2018 12:25 pm
by ross8642
That is interesting. I must find more information

Re: 5250 Bridge & MDT

Posted: Mon Feb 19, 2018 10:38 am
by zeo2797
This is very interesting I am gonging to find more information related to this!