3.2 LANSA RDMLX Client

Three Built-In Functions are required for a LANSA RDMLX client to have complete interaction with the Java Service Manager services.

These Built-In Functions allow multiple concurrent connections in the same function.

3.2.1 JSMX_BEGIN

Initialize or re-initialize the service program internal state.

3.2.2 JSMX_OPEN

Open service

3.2.3 JSMX_COMMAND

Send command.

3.2.4 JSMX_CLOSE

Close service.

3.2.5 JSMX_END

End and re-initialize the service program internal state.

 

The LANSA developer only needs to understand how to use the commands offered by the JSM services.

The overall structure of the LANSA RDMLX functions will be the same.

The function will perform the following operations:

Overview of field and list exchange

Command

 

 

No fields

No list

Command SERVICE_EXCHANGE(*FIELD|*FIELDS)

 

 

Fields

No list

Command

 

#WRKLST

No fields

List

Command

#FLDLST

 

Specified fields

No list

Command

#FLDLST

#WRKLST

Specified fields

List

Command SERVICE_EXCHANGE(*FIELD|*FIELDS)

 

#WRKLST

Fields

List

Command SERVICE_EXCHANGE(*FIELD|*FIELDS)

#FLDLST

#WRKLST

Specified fields

List

 

Note: Specified fields takes precedence over SERVICE_EXCHANGE(*FIELD) or SERVICE_EXCHANGE(*FIELDS) keyword.