C2S

Read syntax diagramSkip visual syntax diagram>>-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