Hello,
I've been doing a lot of searching for this problem and can't seem to figure it out. I don't think the problem is my code because my code works properly in SAS Studio, but I have a huge dataset so I prefer to use SAS locally on my desktop.
Very simple code can give you an idea of the problem:
data test2;
set test;
year=year(date);
run;
The above runs perfectly fine in SAS Studio, but in my local version of SAS, "year( )" isn't recognized as a function and doesn't change color.
Is there a quick fix to this and a novice like me has just overlooked the issue?
Thanks!
Not changing colour doesn't mean its not recognized. The IDE aka Base SAS is ancient and not being developed further as they concentrate on EG and Studio. Does the code work or does it generate an error? That's the test. If it generates an error, post your log from the local code/SAS Studio AND your log from the system that generates the error.
@CJRPHD wrote:
Hello,
I've been doing a lot of searching for this problem and can't seem to figure it out. I don't think the problem is my code because my code works properly in SAS Studio, but I have a huge dataset so I prefer to use SAS locally on my desktop.
Very simple code can give you an idea of the problem:
data test2;
set test;
year=year(date);
run;
The above runs perfectly fine in SAS Studio, but in my local version of SAS, "year( )" isn't recognized as a function and doesn't change color.
Is there a quick fix to this and a novice like me has just overlooked the issue?
Thanks!
Not changing colour doesn't mean its not recognized. The IDE aka Base SAS is ancient and not being developed further as they concentrate on EG and Studio. Does the code work or does it generate an error? That's the test. If it generates an error, post your log from the local code/SAS Studio AND your log from the system that generates the error.
@CJRPHD wrote:
Hello,
I've been doing a lot of searching for this problem and can't seem to figure it out. I don't think the problem is my code because my code works properly in SAS Studio, but I have a huge dataset so I prefer to use SAS locally on my desktop.
Very simple code can give you an idea of the problem:
data test2;
set test;
year=year(date);
run;
The above runs perfectly fine in SAS Studio, but in my local version of SAS, "year( )" isn't recognized as a function and doesn't change color.
Is there a quick fix to this and a novice like me has just overlooked the issue?
Thanks!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.