Page History
...
The command string consists of a command name and zero or more keywords.
COMMAND KEYWORD1( VALUE ) KEYWORD2( VALUE )...
If the value also contains double quotes and the entire string is double quoted then escape the double quote with a backslash.
Keyword Value | Parsed Value | |
|---|---|---|
KEYWORD ( ) | null | keyword is ignored |
KEYWORD ( "" ) | empty | |
KEYWORD ( " " ) | spaces | |
KEYWORD ( abc ) | abc | |
KEYWORD ( "abc" ) | abc | |
KEYWORD ( " abc" ) | abc | |
KEYWORD ( ab"c ) | ab"c | |
KEYWORD ( "ab\"c" ) | ab"c | |
KEYWORD ( "a(b)c" ) | a(b)c | |
KEYWORD ( "a(\"b\")c" ) | a("b")c |
When a command string is printed out in the SERVICE.TXT or TRANSPORT.TXT trace files, the keyword password values are hidden by five stars (*****).
...
Each JSM client has different command capabilities.
If a JSMDirect function needs to access multiple services within the same program, then it is recommended that you use multiple JSM connections.
It is possible for a single JSM connection to use multiple services sequentially by unloading and loading another service.
JSM OPEN | ||
SERVICE_LOAD SERVICE(servicename1) | Load specified service program | |
User-defined commands | ||
SERVICE_UNLOAD | Unload service | |
SERVICE_LOAD SERVICE(servicename2) | Load specified service program | |
User-defined commands | ||
SERVICE_UNLOAD | Unload service (optional) | |
JSM CLOSE |
The JSMStorage object is persistent between JSM OPEN and JSM CLOSE, so servicename1 can put an object into the JSMStorage object and servicename2 can get this saved object. Alternatively, you may write information to a file that can be shared between services.
...