Previous Topic: FILE CommandNext Topic: CA Dataquery DQF Table Definition


CA Datacom/DB Table Definition

This format of the FILE command defines the physical attributes of a CA Datacom/DB input table. The command is coded as follows:

►►─ filename: ─┬─ INPUT ─┬─ DATACOM ─ RECORD=nnn ─┬───────────────┬───────────►
               └─ FILE ──┘                        └─ NAME=dbname ─┘

 ►─┬─────────────┬────────────────────────────────────────────────────────────►◄
   └─ DBID=dbid ─┘
filename:

Is a unique identifier within the Reporting Facility program. The Reporting Facility automatically generates a one-character alphanumeric field with the same name as the table name. It is used as a return code in conjunction with the GET command.

RECORD=nnn

Indicates the combined size of all the elements to be retrieved from the CA Datacom/DB table, plus an additional 300 characters used for communication with CA Datacom/DB. The system reserves the 300 characters of control information as the first 300 characters of the I/O record area.

The subsequent Format 1 DEFINE commands must define all data to be returned as being relative to position 301. The reserved 300-character area has a specific format, and you must complete it prior to any access to the database.

The following details the format of the I/O area as required by the CA Datacom/DB Interface program:

1-5

5-character CA Datacom/DB command

6-10

5-character key name by which access is requested

11-190

Maximum 180-character key value for specific key requests

191-285

Maximum 15-element list, specifying the CA Datacom/DB elements to be returned

286-292

7-character CA Datacom/DB record ID, in the format FFTTTRL

293-300

Filler, reserved for future use

301-nnn

Returned elements

NAME=dbname

Specifies the three-character CA Datacom/DB table name for the CA Datacom/DB table to be accessed. This parameter is optional. If omitted, the first three characters of the filename are used.

Note: For partitioned tables, the CA Datacom/DB Reporting Facilitysupports full parent tables orthe child (table partition) tables.

DBID=dbid

Specifies the numeric database ID in which the table to be accessed resides. If coded, it must specify a positive integer in the range 1—5000.

Note the following:

GSETL
GETIT
LOCBR
LOCKG

LOCKL
LOCKX
LOCKY
LOCNE

LOCNK
LOCNX
REDBR
REDKG

REDKL
REDKX
REDNE
REDNX

REDKY has been superseded by REDKX, REDLE is no longer required as a priming read, and REDID should not be used if the URI option is elected. The first GETITs will read the next record in key sequence unless and until another GSETL is encountered. The KEY= value in bytes 11—190 of the I/O area must accompany those commands that require a key value. Supply the key name in positions 6—10 of the I/O area for all CA Datacom/DB requests. It must match the key name defined in the Control File.

Example

 xxxxxs....
xxxxx

A five-character element name.

s

A one-character security code.

Both are defined in the Control File.

Note the following: