Previous Topic: Create FILE StructuresNext Topic: Create DATAVIEW Structures


Define RECORDs to the FILE

The RECORD ATTRIBUTES region contains one line to define one RECORD occurrence. To insert additional lines on this panel:

  1. Type I (Insert) and the number of lines you want to insert in the line number display one line before where you want the lines inserted.
  2. Press Enter. The panel displays the original line, plus the inserted lines without line numbers. For more information about line commands, see Line Commands.
Name:

(Required) Specify the name of the RECORD occurrence you are adding to this FILE occurrence.

Valid Entries:

1- to 32-character name

Default Value:

(No default)

Type

(Optional) Specify a user-defined code indicating the type of record for multirecord files. For example, HDR, DETL, and TRL for Header, Detail, and Trailer.

Valid Entries:

1 to 4 characters

Default Value:

(No default)

(pswd)

(Optional) Specify a password to protect this occurrence from unauthorized updates. For more information, see the section about protecting definitions in the CA Datacom Datadictionary User Guide.

Valid Entries:

1 to 4 alphanumeric characters

Default Value:

(No default)

(lock)

(Optional) Specify a lock level to restrict access to this occurrence. For more information, see the section about protecting definitions in the CA Datacom Datadictionary User Guide.

Valid Entries:

0, 1, 2

Default Value:

0

Press PF9 (APPLY) after completing your entries. If there are no errors, CA Datacom Datadictionary displays an indented structure containing the FILE occurrence and the RECORD occurrences that you defined to the file.

You can enter margin commands in the line numbers to place an occurrence and a function in the online work queue. Enter the DEF and MOD margin commands in the line number for the RECORD occurrences to define the FIELD, KEY, and ELEMENT occurrences. For more information, see Add RECORD Substructures.