Output Record Dictionary Description - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Statements
FIND Statement
Output Record Dictionary
Description
4–16
target-item
is an input field. Valid values for an input field are: a field name, a string literal
enclosed in parentheses, a predefined aggregate, a user aggregate, an arithmetic
expression, an IF/THEN/ELSE expression, a user table name, a user variable, or a
System Variable. An input field name must be sufficiently qualified to avoid
ambiguity between it and any other name specified in the query.
logical-expression
is an expression returning a true or false value.
Before the FIND statement executes, you must include a description of the output
record in the dictionary. When the FIND statement executes, ENFORM either writes
the output records to the physical file specified in the dictionary or transmits the
output records to a host language program. In either case, the Data Definition
Language (DDL) record description must describe the file type as unstructured.
The following example shows the DDL source code used to produce a dictionary
record description for the output record findfil:
RECORD findfil.
02 custname
02 custnum
02 partcost
end
ENFORM allows you to specify data base tables (see the description of subscripts in
Section 3 for information about data base tables) in the record description of the output
record. The following record description contains a data base table named child:
RECORD newemp.
02 name
02 child
end
You can specify that the output records are to be written to a particular physical file
either by including the DDL FILE IS clause in the dictionary record description or by
specifying the ?ASSIGN command. You can also use the ?ASSIGN command to tell
ENFORM to write the records to a file different from the one described in the
dictionary. The physical file generated by a FIND statement is always an unstructured
file.
In the record description, an output field can differ in data format (picture size, scale,
BINARY vs. ASCII numeric string, ...) from the description of the input field as long as
the output field has the same data type (numeric or alphanumeric ) as the input field.
ENFORM performs the data format conversion automatically, including: truncation or
padding with blanks for alphanumeric input and output fields of different lengths,
binary to ASCII string conversion (or vice versa), and scaling conversion for numeric
input and output fields.
058057 Tandem Computers Incorporated
PIC X(18).
PIC 9(4).
PIC 9(6)V99.
PIC X(18).
PIC X(18)
OCCURS 4 times.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents