New CAS DATA Step action( Code( code ) );
code defines the contents of the DATA step. Action is the JSL variable name.
cas = Current CAS Connection();
code =
"\[
data temp;
x = 9.1; y = 6; z = sqrt(x**2 + y**2);
A = "SAS"; B = "Statistics";
put _ALL_; /* display all variables and values */
run;
]\";
action = New CAS DATA Step action( Code( code ) );
cas << Submit( action );