You must adhere to the following
usage requirements when passing parameters:
- All parameters
in either a CALLJAVA call or EX command are separated by commas.
- You must enclose
complex parameters containing commas in double quotation marks.
- If a parameter
contains a double quote, code it as two consecutive double quotation
marks with no spaces.
- Parameter names
can have spaces.
- Enclose parameters
with leading and/or trailing spaces that need to be retained in double
quotation marks.
- Two consecutive
commas do not represent a null parameter. To pass a blank parameter,
use " " or code a keyword, such as null or blank, as an application
flag.
- A parameter
is generated for an unbalanced double quotation mark; quotes should never
be unbalanced.
For information on parameter parsing techniques, see the example
under Compiling and Running a JAVA Program.
Example: Passing Parameters
The
following command, based on the sample later in this chapter, invokes
the JAVA class java.ibi.cjsamples.cjsamp with three parameters:
EX java.ibi.cjsamples.cjsamp Parameter1, " ", ""Parameter3""