Operands, Return codes, Example – IBM SC34-5764-01 User Manual
Page 353: Notes, Operands return codes, Example notes

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
0
Normal 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 VARB is the same as the length of VARA.
Notes
v
The maximum variable name length supported for this command is 250 characters.
v
This 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