Page History
...
These APIs allow multiple connections within the same job.
Initialize or re-initialize the service program internal state. | |
Open service. | |
Bind program fields to connection handle. | |
Bind program list to connection handle. | |
Send command. | |
Close service. | |
End and re-initialize the service program internal state. |
...
BEGIN using the API interface.
OPEN connection to the Java Service Manager.
Issue a COMMAND to LOAD the service.
Execute COMMANDs supported by the service.
Issue a COMMAND to UNLOAD the service
CLOSE connection to the Java Service Manager
END using the API interface.
On IBM iIBM i, the RPG program needs to be bound to service program JSMRPGSRV, and if you are deploying it, this service program needs to be deployed as well. This program also has dependencies on the JSMCLTDTA data area , and JSMMSGF message file.
...
Most of the service program API character string parameters can be of any size, as the service program will determine the length of character input using IBM's CEEGSI API. The connection handle parameter is always a character of length 4.
Overview of field and list exchange
Command | No fields | No list |
Command + JSMX_BINDFLD | Fields | No list |
Command + JSMX_BINDLST | No fields | List |
Command + JSMX_BINDFLD + JSMX_BINDLST | Fields | List |
...