BBjCommandLineObject::setProgramArgs

Description

In BBj 4.0 and higher, this method sets the BBj program arguments specified by the BBjCommandLineObject.

Syntax

Return Value

Method

void

setProgramArgs(string args)

Parameters

Variable

Description

args

The arguments for the BBj program.

Return Value

None.

Remarks

In a traditional BBj SCALL, this is specified as –<arglist>. Values set here are subject to the same rules as values passed directly from the command line.

Example

rem 'get and set Program arg list

rem 'get CommandLine Object
myCMD! = BBjAPI().getConfig().getCurrentCommandLineObject()
myCmd!.setProgramArgs("arg1 arg2 arg3")
PRINT myCMD!.getProgramArgs()

See Also

BBjAPI

BBjConfig

BBjAPI::newBBjSession

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.