BBjAPI::newSynchBBjSession

Description

In BBj 4.0 and higher, this method starts a new BBj session and waits for it to complete.

Syntax

Return Value

Method

int

newSynchBBjSession(BBjCommandLineObject cmdLineObj)

Parameters

Variable

Description

cmdLineObj

Represents the command line parameters used to start the new BBj session.

Return Value

Returns error/release code (0 = successful, release without argument).

Remarks

The current session will wait for the new BBj session to complete, much like an SCALL. Refer to newBBjSession(BBjCommandLineObject).

Example

rem 'Starting a new BBj Session with newSynchBBjSession()

rem 'get my API Proxy
myAPI! = BBjAPI()

rem 'get my Current CommandLine object
myCFG! = myAPI!.getConfig().getCurrentCommandLineObject()

rem 'set my new program name
myCFG!.setProgramName("foo")

rem 'Run my new BBj Session with my CommandLine Object
x = myAPI!.newSynchBBjSession(myCFG!)

See Also

BBjAPI

BBjAPI::newBBjSession

BBjCommandLineObject

Object Variables

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