IBM SC34-5764-01 Server User Manual


 
S2C
 S2C server_rexx_varname
client_rexx_varname

S2C copies a server REXX variable to a client REXX variable.
Operands
server_rexx_varname
is the name of the server REXX variable copying from.
client_rexx_varname
is the optional name of the client REXX variable copying into. If you do not specify, it defaults to the
same as the server_rexx_varname.
Return Codes
0 Normal return
2840 No variable name specified
2841 Error retrieving variable
2842 Error storing variable
2848 No client available
Example
'S2C VARA VARB'
This example shows the contents of the server REXX variable VARA copying into the client REXX variable
VARB. The length of VARB is the same as the length of VARA.
Notes
1. The maximum length allowed of a varname, for this command, is 250 characters. If a longer name is
specified, only the first 250 characters are used.
2. The maximum length of a variable copied by S2C is 6000 bytes.
3. You can only use the S2C command from a server exec.
Commands
Chapter 25. REXX/CICS Commands 373