Syntax
<null_assign> ::= [IF] NULL SET '<valLITERAL>'
|
valLITERAL |
Null value representation |
Explanation
Place the value for the null representation in single quotation marks. This is a
plain text value that the SAP DB Loader represents as a character string or binary numeric value. This depends on the external data type of the column for which you want to generate the null value.If you want to display the null value representation in one of the external data types for
binary values, it must have a valid numeral format. This means either a floating decimal number in mantissa/exponent representation or a fixed point number with the currently agreed or standard decimal setting.The generated null value representation is written to the same place in the
data stream as the actual column value.Use
Use this syntax rule in a command for unloading application data to specify which value for the data field of the source table is written to the data stream if the value in the source table is a NULL value.

You want to unload the source table
DATAEXTRACT * FROM article
OUTFIELDS
ano 01-08
descr 09-39 IF NULL SET ' '
stock 40-43 INTEGER IF NULL SET '0'
min_ord 44-45 INTEGER
price 46-53 DECIMAL (2) IF NULL SET 'X'
weight 54-57 REAL
OUTFILE 'article.data' FORMATTED

You want to unload the source table
article from the database instance into the data stream article.data. Some of the columns in the table contain NULL values.DATAEXTRACT * FROM article
OUTFIELDS
ano 01-08
descr 09-39
stock 40-51
min_ord 52-63
price 64-74
weight 75-85
OUTFILE 'article.data' FORMATTED

You want to unload the source table
article from the database instance into the data stream article.data. Some of the columns in the table contain NULL values.DATAEXTRACT * FROM article
OUTFIELDS
ano 01-08
descr 09-39
stock 40-43 INTEGER
min_ord 44-45 INTEGER
price 46-53 DECIMAL (2)
weight 54-57 REAL
OUTFILE 'article.data' FORMATTED