C2S
 C2S client_rexx_varname
server_rexx_varname

C2S copies a client REXX variable to a server REXX variable.
Operands
client_rexx_varname
specifies the client REXX variable to copy from.
server_rexx_varname
is an optional name that specifies the server REXX variable to copy into. If it is not specified, it
defaults to the same as the client_rexx_varname.
Return Codes
0Normal return
2440 No variable name specified
2441 Error retrieving variable
2442 Error storing variable
2448 No client available
Example
'C2S VARA VARB'
This example shows that the contents of the client REXX variable VARA are copied into the server REXX
variable VARB. The length of VARBis the same as the length of VARA.
Notes
vThe maximum variable name length supported for this command is 250 characters.
vThis command is intended for use only by REXX/CICS server execs (for example, exec defined by
DEFCMD or DEFSCMD).
Commands
Chapter 25. REXX/CICS Commands 331