Syntax documentation column_id_spec Locate the document in its SAP Library structure

Syntax Rules for Column Descriptions

Syntax

<column_id_spec> ::= <column_id> <field_pos> <format_spec> <null_assign>

Use

Use it in unload commands to assign the data fields of the data stream to the columns of the source table. You specify the external data types and the conditions for unloading the application data.

Note the following rules:

Decide whether you want your column descriptions to contain field_pos field descriptions.

However, you must specify position descriptions for all or none of the described columns. If you do not, the SAP DB Loader generates an error and terminates the command.

Format of the Data Stream: COMPRESSED

If you enter position descriptions with start and end positions for single columns or all columns, the SAP DB Loader generates an error and terminates the command.

Example

DATAEXTRACT * from customer
OUTFIELDS
  cno       1
  name    2
  zip       3
  place     4-31     
ERROR
OUTFILE 'customer.data' COMPRESSED

Example

DATAEXTRACT * from customer
OUTFIELDS
  cno       1
  name    2
  street    3
  zip       3     ERROR
  place     5     ERROR
OUTFILE 'customer.data' COMPRESSED

Example

DATAEXTRACT * from customer
OUTFIELDS
  cno       1
  name   2
  zip       3
  place     4
  surname   5
OUTFILE 'customer.data' COMPRESSED

Format of the Data Stream: FORMATTED

Example

DATAEXTRACT * from customer
OUTFIELDS
  cno       01-04
  name    06-12
  zip       14-18
  place     16-31
OUTFILE 'customer.data' FORMATTED