Previous Topic: Modeled Sequential File Structures and DataviewsNext Topic: Recatalog and Recompile


Defining Modeled Dataviews for Sequential Files

  1. Enter SET MODE FILEMAINT or select option 5 on the mode menu. Do not attempt to create an unmodeled sequential file dataview in any other mode.
  2. Create the file. You are prompted for the record name and required attributes. When you enter the APPLY command, the file structure so far displays.

    Note: The CA Ideal requirements for FILE attributes are described in the section titled Rules for Sequential File Dataviews.

  3. Modify the record and declare the KEY and ELEMENT. Insert an extra line because DDOL gives you only one. Supply all attributes marked Key Only for the key. Enter the APPLY command to see the file structure so far.

    Note: CA Ideal does not use the KEY information. CATALOG DATAVIEW processing ignores it. You can define a key to document the native sequence of the file without affecting CA Ideal.

  4. Define the fields for the RECORD, KEYs, and ELEMENTs (using DEF line commands and PF4). DDOL first processes the record definition. When that is successfully applied, type PF4 to move on to the key, where the field name must be typed in. Enter the APPLY command, then type PF4 to move on to the element. Change the Include attribute to Y for each field. If there are no redefinitions, you can alternatively name the first and last fields. Enter the APPLY command for the element.
  5. Create the dataview (accessing elements). CA Ideal does not need a key defined here. The dataview must be created in the same status and version as the file. Fill in the name of the file and element and enter the APPLY command.
  6. If required, copy the file structure to status PROD. This verifies that the definition is consistent before it actually makes the change.
  7. Copy the dataview to PROD if the file is now PROD.
  8. Enable the file structure (test version or PROD).

In CA Ideal

Use the CATALOG DATAVIEW command or equivalent CATALOG prompter to catalog a dataview. A dataview must be cataloged before CA Ideal uses it. You can issue one or many CATALOG commands in a batch run of CA Ideal.

When the CATALOG DATAVIEW command is processed, a DISPLAY DATAVIEW command is automatically invoked. If one or more rules are violated, a list of error messages displays at the bottom of the dataview display (or, if the CATALOG command is issued using CA Ideal in batch, a listing is printed).

CATALOG DATAVIEW results in a cataloged dataview definition ready for CA Ideal use. Any CA Ideal program naming the dataview as a resource that compiles successfully can be executed.

Access the CATALOG prompter by selecting option 4 on the CA Ideal Administration Maintenance Menu. For more information about description and syntax of the command, see the Command Reference Guide.