CMDFILE
command line keywordCMDFILE
specifies a file that contains one
report's command line arguments. The file called must be an ASCII file (for
example, a .txt
file).
CMDFILE
differs from the cgicmd.dat
file, in that CMDFILE
can contain one command
line for one report, where the cgicmd.dat
file
can contain multiple key-identified commands for multiple reports. Additionally,
the CMDFILE
keyword can be used along with other
arguments in a command line; while, when you use the key argument associated
with cgicmd.dat
, it is the only argument that
appears in the command line.
The CMDFILE
keyword enables you to run a report
without specifying a large number of arguments each time you invoke a run command.
The executables that can use this keyword are:
rwbuilder |
yes |
rwrun |
yes |
rwclient |
yes |
rwcgi |
no |
rwserver |
no |
rwservlet |
no |
rwconverter |
yes |
CMDFILE=filename
Values |
Description |
|
Any valid command file. |
With rwservlet
and rwcgi
,
use the CMDKEY
keyword to refer to a key
in the cgicmd.dat
file in lieu of using
the CMDFILE
keyword.
A command file may reference another command file.
The syntax for a command line you specify in the command file is identical to that used on the command line.
Values entered on the command line override
values specified in command files. For example, suppose that you specify
rwclient
from the command line with COPIES
set to 1 and CMDFILE
set to RUNONE
(a command file).The RUNONE
file also specifies
a value for COPIES
, but it is set to 2.
The value specified for COPIES
in the command
line (1) overrides the value specified for COPIES
in the RUNONE
file (2). Only one copy of
the report will be generated.
The value for this keyword might be operating system-specific.
Running a report from the command line
Copyright © 1984, 2005, Oracle. All rights reserved.