Previous Topic: Action=LOAD Class=PDOMAIN

Next Topic: Action=NAVIGATE Class=PDOMAIN


Action=LOAD Class=TABLE

This function loads the tables for an application (typically during system initialization). You perform the LOAD TABLE function before you can use the tables to validate data.

This statement has the following format:

&CONTROL NOSHRVARS
-EXEC $CACALL OPT=ACTION
              ACTION=LOAD
              CLASS=TABLE
              NAME=‘APPL=application_id
                   [FIELD=field_name]’
             [PARMS=‘RELOAD={YES | NO}’]
APPL=application_id

Specifies the identifier of the application.

FIELD=field_name

(Optional) Specifies the name of the table if you only want to load one table.

Default: All tables for the specified application are loaded.

RELOAD={YES | NO}

(Optional) Specifies whether you want to reload previously loaded tables for the application.

Default: NO

Input Variables

This statement has no input variables.

Return Variables

This statement contains the following return variables:

&SYSMSG

System message. Contains the error message (for return code 8).

Feedback Codes

If a return code of 8 is set, then additional information is available as one of the following feedback codes, set in &$CAFDBK:

8

Processing error

10

Nesting level exceeded

Example

The following statements load the tables for the application identified by ID ZPR. Any tables already loaded are reloaded.

&CONTROL NOSHRVARS
-EXEC $CACALL     OPT=ACTION +
                  ACTION=LOAD +
                  CLASS=TABLE +
                  NAME=‘APPL=ZPR’ +
                  PARMS=‘RELOAD=YES’