7.1.6 Specify Parameters via an Input File
If you specify the parameters via an input file, you must include a parameter in the command line to indicate the location of the file.
This parameter's format is:
QFIL=<file path & name>
For example:
LCRUN32.EXE CITY.LCQ QFIL=c:\temp\city.inp
will run the CITY.LCQ query taking parameters from the c:\temp\city.inp file.
The parameters on the input file must follow these rules:
- One parameter to a line.
- The same format is used whether the parameter is input via a command line or file.
- The parameter value is taken to be the text to the end of the line (including any spaces or tabs).
- Blank lines are ignored.
- Lines beginning with // are regarded as comment lines.
For example:
// an example input file
// set the first query parameter to NEW ZEALAND
QP01=NEW ZEALAND
// the second query parameter is missing so the default is used
// set the third query parameter to be 1000
QP03=1000
//and connect to the second host
HSTN=2
Note: If your parameter value includes an embedded quote ("), then you must supply the value via an input file rather than a command line.
Further Information