Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

BOOL

LceLansaCall

(int

iSession,



 char far *

strProcess,



 char far *

strFunction,



 char far *

strProgram,



 char far *

strExchangeList )

Parameters

iSession

The session identifier as returned by LceGetSessionId.

strProcess

The name of the LANSA process.

strFunction

The name of the LANSA function.


or

strProgram

The name of the IBM i program.

strExchangeList

A list of field names to be passed to and from the program. Refer to Notes.

...

FALSE is returned if an error occurs.

Notes

Portability Considerations

The format which uses strProgram is only supported if your host system is an IBM i. An error will be returned by the host if you make a call with strProgram to any other platform.

When calling a program on the IBM i, the exchange list may only contain fields of type A, P, and S. If exchanging numeric fields, the maximum length is 30 and the maximum decimals is 9.

...

Tip

Tip: This function is ideal to

  • reRe-use an existing host process or IBM i IBM i program.
  • perform Perform a task that requires access to multiple files.

If you don't want to wait until the host process completes, use the LceSubmit function instead.

If you wish to call a 3GL program that either passes or receives parameters, use Lce3GLCall instead.

...