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 now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.