Previous Topic: USAGE-MODE StatementNext Topic: Database Conversion Phase


LOAD Statement

If the unloaded Total data contains master file control keys and linkpath fields, use the LOAD statement to tell the loader so that these fields can be ignored when the corresponding CA IDMS/DB database is loaded. If master file control keys and linkpath fields are not present, the LOAD statement is optional.

Unloaded Total data includes master file control keys and linkpath fields only if a means other than the CSITULOD utility is used to unload the Total database.

Additionally, the LOAD statement includes a parameter to specify the logical record length of the unloaded Total data if this value is other than 120 bytes.

Syntax

►►── LOAD ────────────────────────────────────────────────────────────────────►

 ►──┬─ COMPACT ◄ ─┬─┬───────────────────────────────┬─────────────────────────►◄
    └─ ALL ───────┘ └─ LRECL logical-record-length ─┘

Parameters

LOAD

Required keyword; must occupy a line by itself and begin in column 1.

COMPACT/ALL

Specifies whether the unloaded Total data is to contain master file control keys and linkpath fields. Begin this clause in column 8.

COMPACT

Specifies that master records, standard variable records, and coded variable records unloaded from the Total database contain the file name in the first four bytes of the record, followed immediately by all data items. Linkpath fields are not present in an unloaded Total record, nor is the master file control key defined in Total DDL for master files.

COMPACT is the default. It is informational only and specifies that the unloaded Total data will not contain these fields.

ALL

Specifies that unloaded Total master records, standard variable records, and coded variable records contain the information shown in the following table.

Use ALL if you are using the CSITULOD utility to unload the Total database (specify COMPACT in exceptional cases only). If you use means other than CSITULOAD to unload the Total database, the contents of the unloaded Total records must conform to one of the options provided by this clause.

Record(s)

Contents

Master

The first four bytes of each unloaded master record contain the master file name, followed by four bytes containing the internal reference point, followed by the master file control key, followed by the contents of each linkpath field (eight bytes per linkpath) defined for the master file, followed by all data items defined for the record.

Standard variable

The first four bytes of each unloaded standard variable record contain the standard variable file name, followed by the contents of the principal linkpath key for the associated master file, followed by all data items defined for the record.

Coded variable

The first four bytes of each unloaded coded variable record contain the coded variable file name, followed by two bytes containing the record code, followed by the contents of the principal linkpath key for the associated master file, followed by all data items defined for the record.

LRECL logical-record-length

Indicates the largest logical record length of unloaded Total data if this length is other than 120 bytes. Do not include LRECL if the logical record length is 120. You must specify the logical record length of the largest record if you are using variable-length records. Begin this clause in column 8.

Example

The following is an example of the LOAD control statement.

LOAD
       ALL