Joined: 19 Feb 2005 Posts: 27 Location: hyderabad-ap-india
What is the use of OPT= parameter in MFS MFLD defintion. I was using a MFS to display the screen with few values. The functionality of this MFS is display the screen with few values to update. That contains OPT= parameter. In the program we have to see if any values are changed. If it is, then update in the dtabase.
Now I have removed that and executed. But when coming back to the program, I am loosing all the values except the updated values. that is, if the user changes 2 values out of 10 displayed values, I am getting only those two values into the program. I am loosing all other 8 values. If it is the case, how to compare what are all the values he has changed. Is this bcoz of OPT= paramter? Pls help me.
Joined: 07 Nov 2005 Posts: 1105 Location: The Netherlands at Hole 19
OPT means the way the message is build (1 --> 3).
Your problem looks like OPT=3 where only the entered values are stored in the message. Each field in the message is preceeded by offset and length. OPT=3 is used for performance and delivers a shorter message if not all fields are entered. Usually the end-of-message is set in your application by closing it with X'3F'.