Previous Topic: Check Database Attributes

Next Topic: Load the Data

Build Field Definitions

The next records in the unload file are the field definition records. Read them and build field definitions in the new NDB.

Note: Because &10 contains the field maximum length, it is not used.

&FILE GET SEQ ARGS                  -* read next record

At this point, changes to field attributes could be processed. For example:

&IF .&3 = .SURNAME &THEN &5 = UNIQUE
&IF .&3 = .DOB &THEN &5 = YES

Also, the relative field number used during unload is available in &2. This can be used during data reloading to alter field values, and so on.

At the end of this step, the new database has all the fields defined.