script
Hi,
I'm a relatively new user of JMP/SAS scripting language, and only used to other "standard" languages like C, VBA, PASCAL, etc... so maybe my question is obvious...
I can't figure out how to return cleanly the TABLE result from a function.
If I don't use the DEFAULT LOCAL option, of course the table returns if I use the name of the table int he FUNCTION, but when I try to do something like
d_result= MyFunction(Input1,Input2;Input3); the variable d_result is "."
I would like to use the {Default LOCAL} option in order to program cleanly and avoid problem with LOCAL/GLOBAL variables, so hence I would like to output the table.
In general I don't understand how to specify the returning results of a FUNCTION.
I tried with RETURN() in the input params, but it seems only to work with a simple parameter (numer or string), not a table (see Page 212 of JSL Syntax reference):
Function({arguments}, <{local variables}>, <Return(<expr>)>, script)
Thanks a lot for your help !!!
Best regards.
Alex