TRIM

LANSA Integrator

TRIM

The optional keyword TRIM allows the service to trim blanks from data values.

Data values coming from the function to the service and visa versa are trimmed.

The default value for the TRIM keyword is *TRAILING.

Note: TRIM is implemented at the command level and not at the service level. This means that all services have TRIM capability.

TRIM

*NONE

No trimming.

*BOTH

Trim leading and trailing blanks.

*LEADING

Trim leading blanks.

*TRAILING

Trim trailing blanks.

 

Example

 

SEND TRIM(*BOTH)

 

RECEIVE TRIM(*NONE)