Redefines allow you to hold different data structures in one physical file.

To define a redefine section of a File Definition, you use three special data types:

Redefine Start (RS), Redefine End (RE) and Redefined Field (R).

Against the Redefine Start (RS), you name the variable (which must exist in the non-redefined part of the file definition) the value of which tells you which section of the redefine you are using.

You then have repeating groups of fields, each of which represents a data structure. These all start with a Redefined Field (R), which has a literal, in quotes, instead of a variable name. This is telling PROIV that when that variable has the value entered, use the following fields until the next R or RE. After the Redefined Field, you have normally defined fields.

The redefined section of the file definition ends with a Redefine End (RE), which has no data after the data type.

Comment on this topic

Topic ID: 500066