Syntax Rules for Column Descriptions
<column_id> ::= <valCOLUMN_NAME> | <valCOLUMN_ID>
valCOLUMN_NAME |
Column
name |
valCOLUMN_ID |
Column ID |
In a command for unloading application data, use it to assign a column of the source table to a data field of the data stream.
DATAEXTRACT cno, name, zip, city FROM customer
OUTFIELDS
cno 01-04
name 06-12
zip 14-18
city 20-31
OUTSTREAM 'customer.data' FORMATTED
The column number valCOLUMN_IDindicates the position of the column in the SELECT statement.
DATAEXTRACT cno, name, zip, city FROM customer
OUTFIELDS
1 01-04
2 06-12
3 14-18
4 20-31
OUTSTREAM 'customer.data' FORMATTED