### 37.3.2 Command-line switch -o output

The DCL -o switch specifies an output file name (with or without path), or an output file extension:

-o file | Output file path or name, without extension. Applies only to the first input file name that follows this option. Overrides, for the next file name only, any –o ext or –o directory that appears earlier on the command line. The default is the same name as the input file name, but with the ext extension.
-o ext | Output file extension. Overrides dcl default output file extensions. Applies to all following input file names on the command line until dcl encounters a new -o ext. If no output type is specified via -t, the default value for ext is .rtf. The value for ext must have a period as the first character. If the period is not present, ext is interpreted as a file name.

| 37.3.1 Command-line switch -f format |  | 37.3.3 Command-line argument input ... |