With the exception of H records, which are fixed format records, all records are variable format records:
Variable format records are accepted on input. This refers to the records themselves, not the files, data sets, or CICS data queuesthat contain the records. Variable format records have the following general form:
The control area is:
The record data area is a variable length area containing information about that specific record. Fields in this area are separated by a delimiter (a blank character is used in this book).
Value records are used to provide a value for a single field in an object, such as blank lines before the heading in the form. V records contain:
Appendix B. Export/Import Formats lists the assignments of field numbers to the fields contained in the prompted query, form, and report objects.
The contents of a V record are:
Control area for V records:
Record data area for V records
Form: V 1511 * NONE
(See page Table and field numbers for the form object for a complete list of field numbers.)
Report: V 1001 006 PERIOD
(See page Table and field numbers for the report object for a complete list of field numbers.)
Prompted query: V 1501 001 K
(See page Table and field numbers for the prompted query object for a complete list of field numbers.)
In the encoded format, most data in an object appears in tables. These are not relational tables in the database, but rather a means of grouping information within the encoded format.
Each T record defines one table, and each table corresponds to a particular part of an object, such as summary calculations in the form. Thus, one exported file can contain many of these encoded tables. See Appendix B. Export/Import Formats for information about field numbers for encoded tables and their columns.
A T record is always followed by R records. The T record describes the R records that follow it. If there are no R records following a T record, the table is omitted.
Be sure your application program refers to the contents of tables of an exported form, report, or prompted query by using the encodings in the T record to correctly locate the values in the R records. Your application program should not use fixed offsets to locate information in R records.
The contents of a T record are as follows:
Control area for T records:
Record data area for T records
The byte positions in the following list are offsets following the end of the control area, the length of which is indicated in the header record.
Bytes 11-13 (number of columns) indicate how many field number/data value length pairs follow; this means that the information in bytes 15 through 22 is repeated for each column.
T 1110 * 002 1112 007 1113 018
(See page Table and field numbers for the form object for a complete list of field numbers.)
T 1110 008 002 1112 001 1113 027
(See page Table and field numbers for the prompted query object for a complete list of field numbers.)
T 1010 005 003 1012 008 1013 003 1014 006
(See page Table and field numbers for the report object for a complete list of field numbers.)
R records provide a set of values for a single row in an encoded table. R records contain a list of values arranged in an order described by the associated T record. An R record matches the description of the positions and lengths of the data values specified in the T record. The contents of an R record are as follows:
Control area for R records:
Record data area for R records
Following the control area, the data area for R records consists of a series of values separated by a delimiter (blank character). The format is as follows:
_val.._val..._val..
where val... is the data value for this row and column and _ is the delimiter.
In these examples, the length of the column value is always given in the T record for that column.
Form: R 2 SALARY
(See page Table and field numbers for the form object for a complete list of field numbers.)
Report: R GROUP L2
(See page Table and field numbers for the report object for a complete list of field numbers.)
Prompted query: R C A.DEPT
(See page Table and field numbers for the prompted query object for a complete list of field numbers.)
The E record specifies the end of an exported object. It is the last record of an exported file, appearing as the character E. For an exported report, an E record is followed by a blank character to complete its control area. For a form, the blank is omitted.
Any records following the E record are ignored. If an E record is not included with the file being imported, QMF assumes that end-of-file implies the end of the object.
[ Previous Page | Next Page | Contents | Index ]