Command format
An API command can be passed from REXX to CICSPlex® SM either by using the REXX ADDRESS command or by using the EYUAPI() function.
The format of the REXX ADDRESS command is as follows:
ADDRESS CPSM 'command option(arg)...'
This method of calling the API invokes a CICSPlex SM host subcommand environment.
Alternatively, you can use the EYUAPI() function supplied by CICSPlex SM:
var = EYUAPI('command option(arg)...')
This method invokes the CICSPlex SM REXX function package.
Note that with both methods you can enter text in either upper or lower case.
Here is an example of an API command as it would be issued from
a REXX program:
var = EYUAPI('CONNECT' ,
'CONTEXT('WCONTEXT')' ,
'SCOPE('WSCOPE')' ,
'VERSION(0310)' ,
'THREAD(THRDTKN)' ,
'RESPONSE(RESPVAR)' ,
'REASON(REASVAR)')
.
.