4 2 4 Adding Real Fields to a File

Visual LANSA

4.2.4 Adding Real Fields to a File

If you think of a file as a table, the fields in the file are the columns in the table that make up the record format. To complete a basic file definition, you must identify the following:

  • What are the fields in the file?
  • What is the sequence of these fields?
  • What fields are used as the keys to the file?

There are two ways of adding the real fields to a file.

Add Single Field

You may add an existing field in the repository to a file definition. When the field is added, you can specify if it is a key field and where it is sequenced in the file.

Add Multiple Fields

You may multiple fields to a file definition. Using this approach, the field does not have to exist in the repository. You can specify the field characteristics as you add them to the file and they will be created in the repository once you have completed the list of fields. Again, you can specify if a field is a key to the file. Sequence is based on the order that the fields are added.

Also See

Real Fields in File in the Technical Reference Guide

Ý 4.2 Developing Databases