The SERVICE_GET command allows JSM client applications to access the keyword / value properties from the properties file associated with the currently loaded service.

Client applications can access the value of properties associated with the service, but, perhaps more usefully, they can access application specific property values too, using the service properties file as a common medium for holding such values.

When used in the latter way, there is a possibility of conflict between application-defined keyword names and those used by current and future versions of LANSA Integrator.  To reduce this possibility your application should prefix the property keyword with a global unique name.  The examples below use as the prefix for this purpose.

The service property keyword value is returned in the JSM Message field. If the keyword does not exist, then a status of NOT_EXIST is returned.



  SERVICE_GET --------  PROPERTY ----- value --------------------| 




Provide a keyword / value to be checked on the service properties file.

The service property keyword value is returned in the JSM Message field.  If the keyword does not exist in the service property file a status of NOT_EXIST is returned.


The examples retrieve the value of the (an application-defined property) in the service properties file.  This property might be defined in the service properties file with a line like this (the value "html" will be returned to the application in this case):

RDML Example:



RDMLX Example:

#jsmcmd := ' service_get property('

use builtin(jsmx_command) with_args(#jsmhdle #jsmcmd) to_get(#jsmsts #jsmmsg)


ILE RPG Example:

c                   eval      jsmcmd = 'service_get'                      

c                             + ' property('

c                   callp     p_jsmcmd(jsmcmd:jsmsts:jsmmsg)