On Friday, 07/08/2016 at 06:53 GMT, "Stanislawski, Shawn (National VM 
Capability)" <[email protected]> wrote:
> I admit to being curious, how does CSL update the variables CSLRC and 
CALLER (in Alan's example) in
> the calling program?

There are two elements working together:
1.  The REXX Shared Variable (SHV) interface allows programs called by 
REXX to get and set REXX variables by name.
2.  Every CSL routine has a "template" that defines the parameter types 
(ubin, sbin, char.) and their usage (input, output, inout, required, 
optional).

The CSL built-in function looks at those templates and uses the SHV 
interface convert the data REXX variable content to to the proper form, 
invoke the specified CSL routine, and then store the responses back into 
the indicated REXX variables (again using the SHV interface).

Alan Altmark

Senior Managing z/VM and Linux Consultant
Lab Services System z Delivery Practice
IBM Systems & Technology Group
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
[email protected]
IBM Endicott

Reply via email to