Syntax:
Then: a=EDIT(n)
n is equal to a real, dummy or system maintained field.
Version Ref: 3.x
Description:
Returns the edit-type of a field.
Examples:
TT(10,EDIT(3))
Assigns dummy field TT with length 10 & the same edit type as field 3.
When you use EDIT with LEN, you can assign both the length and the edit type of one field to another.
Then: aa(len(3),edit(4))
Assigns the length of filed 3 and the edit type of field 4 to dummy variable aa. If you ever change the length of field 3 or the edit type of field 4, aa's length and edit type will change as well.
Restrictions:
EDIT can be used on all processing tables on both condition and action lines.