Entering content frame

Function documentation Options for Input and Output Locate the document in the library structure

Use

In command file or in session mode you can specify options for determining version information.

in_output_options

-o[w|a] <file_name>

Name of the output file

-cs <separator>

Specifies a command separator

-ps <number><string>

Specifies a substitution parameter

-E <number>

Maximum permitted number of errors

Explanation

-o[w|a] <file_name>

The output of the Loader is written to the specified filefile_name (the screen is the default value),

·        Option –ow
The file is opened and any existing entries are deleted.

·        Option –oa
The file is opened and the outputs are appended to the end of the file without any previous entries being deleted.

Note

This option refers only to output from the Loader. Irrespective of this, the loader also writes a log file.

-cs <command_separator>

With this option you determine which characters of Loader CLI are supposed to be recognized as command_separator.

A command separator must contain at least one, at most two characters.

·        In command file mode, the default command separator is a line that begins with a double forward slash // (see also Syntax Rules for Command Files).

·        In session mode, the default value for a command separator is ENTER. To continue a command on the next line, the Loader CLI expects a simple slash (/) at the end of the line.

-ps <number> <substitution_value>

You use this option to specify values for placeholders in the command file. Value number defines the numbers of the placeholder to be substituted in the command file (1<=n<=9). You use substitution_value to specify the value the placeholder is to replace. 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>.

-E <number>

You use this option to specify after how many commands  with errors <number>  the Loader stops processing the command file.

Example

Call the Loader in command mode

loadercli -b command.dat -d demodb -u mona,red –E 20

The Loader establishes a connection to the database instance DEMOBfor the user MONA. The Loader processes the commands and statements contained in the command file command.dat. If errors occur (return code <> 0), the processing of the command file is terminated as soon as 20 error messages have occured.

 

 

Leaving content frame