Home The Company Publications Products Links Tips

Tips, Tricks, and Techniques

Last update: 30 April 2004

Setting "modified data tag" on Natural control variable


Question

I am wanting to control the setting of the MDT on a control variable programmatically. I want to set it to MODIFIED without user input into the field. Is there a way to do this?

Answer

Sure, redefine your #CV variable as Binary (B2) and move hex '0100' to it! That will make the control variable have a modified value.
1 #CV (C)
1 REDEFINE #CV
  2 #CV-B(B2)

MOVE H'0100' TO #CV-B

Top Page


Back to NATURAL Tips, Tricks, Techniques -- Overview