Versions Compared

Key

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

Executes the specified 3GL program on the IBM i. Parameters can be passed to and from the 3GL program using associated LANSA Open functions.

BOOL

 Lce3GLCall

(int

iSession,



 char far *

strProgram,



 char far *

strLibrary,



 Int

iParam)

Parameters

iSession

The session identifier as returned by LceGetSessionId.

strProgram

The name of the IBM i program. The length should not exceed PROGRAM400_LENGTH as defined in the LCOE.H header file.

strLibrary

The name of the IBM i program library. The length of strLibrary should not exceed LIBRARY_LENGTH as defined in the LCOE.H header file.

iParam

The number of highest first level parameter block specified in iParam of  the preceding Lce3GLDefineParameter. For example, if you defined first level parameters of 0 through 5, iParam is set to 5.   

...

FALSE is returned if an error occurs.

Notes

Portability Considerations

Lce3GLCall is only supported if your host system is an IBM i. An error will be returned by the host if you make a call to any other platform.

...

Tip
Tip: Use Lce3GLCall to re-use tried-and-true 3GL programs which perform complicated calculations.

Related Functions

6.4 Lce3GLDefineParameter

6.5 Lce3GLGetValue