Option for calling the Loader with LOADERCLI for transferring a substitution parameter.
-p<number> <substitution_value>
<number> |
Defines the number n of the placeholder you want to substitute in the command file, where 1<=n<=9. |
<substitution_value> |
Value that substitutes the placeholder in the command file |
At the same time, you are using the option –b to specify a command file. This option is ignored in the interactive operating mode.
You use this option to specify values for placeholders in the command file. These values can be any character strings. You can specify nine different parameters (and placeholders) for each command file.
In the command file, enter the placeholder in the form &<number>.
Entry in the command file:
DATAEXTRACT FOR DATALOAD TABLE customer OUTFILE '&1' OUTFILE
'customer.data'
DATAEXTRACT FOR FASTLOAD TABLE article OUTFILE '&1' APPEND OUTFILE
'article.data'
You can specify the name of the command file with the call of the Loader CLI, using the option –p :
loadercli ... –p1 command.dat