Remote Program Calls

Newlook contains support for executing remote programs and APIs on an iSeries host and then processing the results of those programs locally. This support is provided through a number of RPC database actions.

In order to execute a remote command on the iSeries host, the macro will:

  1. Open an RPC connection with the RPCConnect action.
  2. Describe the arguments and return value of the program using the RPCDeclare action.
  3. Execute the remote program with the RPCCall action.
  4. To locally process messaged generated by the command the macro can reference the Response property of the Connection object.
  5. Close the RPC connection with the RPCDisconnect action.

The connection object created by the RPCConnect action or RPCConnect method represents a single unique communications session with the RPC server. The connection can be used for multiple remote command and program calls before being closed with the RPCDisconnect action.

See Also

Remote Commands


© 2004-2021 looksoftware. All rights reserved.