Hi
Just wanted to see, mostly out of curiosity, what the experts think of below and this is also my first post so hoping I get it right 🙂
So was recently asked by a colleague to help investigate why his proc fedsql did not want to work. After some time playing around with the code I realised that the variable named "Result" was causing the Proc FedSQL to error. Changing the variable to anything other (except the word "value") on the same code seems to work fine. So just wondering is the words "Result" and "Value" reserved within the CASL language? I'm assuming it must be something along the lines if the Proc Fedsql converts the statements into CASL that it errors.
Below the error message and some sudo code that does the same.
cas auto;
options casdatalimit=all msglevel=i;
libname casuser cas caslib="CASUSERHDFS";
data casuser.cars_test;
set sashelp.cars;
result=horsepower/cylinders;
run;
proc fedsql sessref=auto;
select count(make)
from CASUSERHDFS.cars_test;
quit;
proc fedsql sessref=auto;
select count(result)
from CASUSERHDFS.cars_test;
quit;
The following words are reserved as FedSQL language keywords and cannot be used as variable names or in any other way.
FedSQL Reserved Words 'R' Alphabet
RANK READ READS REAL RECHECK RECURSIVE REF REFERENCES REFERENCING REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY REINDEX RELATIVE RENAME | REPLACE RESET RESTART RESTRICT RESULT RETURN RETURNS REVOKE RIGHT ROLLBACK ROLLUP ROW ROWS ROW_NUMBER RULE |
The following words are reserved as FedSQL language keywords and cannot be used as variable names or in any other way.
FedSQL Reserved Words 'R' Alphabet
RANK READ READS REAL RECHECK RECURSIVE REF REFERENCES REFERENCING REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY REINDEX RELATIVE RENAME | REPLACE RESET RESTART RESTRICT RESULT RETURN RETURNS REVOKE RIGHT ROLLBACK ROLLUP ROW ROWS ROW_NUMBER RULE |
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.