Syntax
<output_column_list> ::=
<output_column> | <output_column> <output_column_list>Use
This is a
syntax rule for describing columns.Use it in a
DATAEXTRACT command to describe the unloaded columns of a source table and the representation of the data records in the target file.Note the following rules:
Definition of the source table:
create table customer (cno char (4), surname char (6) NOT NULL, zip integer, place char (11), PRIMARY KEY (cno))
Unload command:
DATAEXTRACT * from customer
OUTFIELDS
cno 01-04
last name 06-12
zip 14-18
place 20-31
OUTFILE 'customer.data' FORMATTED