@Reeza Putting an OPTIONS statement inside data step code may not be a best practice, but only because it might cause confusion about when the options go into effect. The documentation explicitly says that the only place the OPTIONS statement is not allowed is inside data lines, so inside a data step is valid.
The behavior of global statements inside steps is well defined; the problem is that it's not immediately intuitive.
options ls=150;
%put NOTE1: LineSize=%sysfunc(getoption(linesize));
data _null_;
%put NOTE2: LineSize=%sysfunc(getoption(linesize));
ls = getoption('linesize');
putlog 'NOTE3: ' ls=;
options ls=100;
%put NOTE4: LineSize=%sysfunc(getoption(linesize));
ls = getoption('linesize');
putlog 'NOTE5: ' ls=;
run;
%put NOTE6: LineSize=%sysfunc(getoption(linesize));
returns
69 options ls=150; 70 %put NOTE1: LineSize=%sysfunc(getoption(linesize)); NOTE1: LineSize=150 71 72 data _null_; 73 74 %put NOTE2: LineSize=%sysfunc(getoption(linesize)); NOTE2: LineSize=150 75 76 ls = getoption('linesize'); 77 putlog 'NOTE3: ' ls=; 78 79 options ls=100; 80 81 %put NOTE4: LineSize=%sysfunc(getoption(linesize)); NOTE4: LineSize=100 82 83 ls = getoption('linesize'); 84 putlog 'NOTE5: ' ls=; 85 86 run; NOTE3: ls=100 NOTE5: ls=100 NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 87 88 %put NOTE6: LineSize=%sysfunc(getoption(linesize)); NOTE6: LineSize=100
Hello
I have the same issue,
Do you have any solutions? if yes, please could you tell me
Thanks in advance for your support
Susana
Hi Susana,
I know there is another student in my training course who has the same problem. I asked him to contact the local sas support team. It will be open tomorrow morning. We are located in Madrid. Maybe it has to do with our problem.
Thanks
Maybe, is alocation issue,
Please when you have news, tell me
A open question for others people, Anybody from others location have a similar issue?
Regards
Susana
Somebody have any news?
Thanks
Susana
Hello Team,
I have the same issue, i form Colombia.
Regards
Hello
It is not solved yet
However, I am using sas enterprise guide as an alternative solution and the code is running great. I suggest you to try it
There appears to be a problem with a SAS Studio 3.7 update (C7W002) that was recently applied to SAS OnDemand for Academics. We believe it also impacts SAS Studio 3.71 hotfix (C2L006 and C2L005). We are working on a fix.
There are a couple ways to workaround the issue in the meantime...
1. Switch to the Visual Programmer perspective, by clicking SAS Programmer on the SAS Studio toolbar and changing to Visual Programmer.
2. If you are running SAS Studio in a non-English locale (ex. German (de), Spanish (es), French (fr)), run it in the en locale instead (put "?locale=en" on the end of the url, or replace existing "locale=<locale>" in the url with "locale=en").
Sorry for the inconvenience. We will provide a fix asap.
Casey
ps- There is also now a notice on the Status Page:
https://status.oda.sas.com/?context=us-west-2a
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
it is still not running...
Hello Casey,
Thank you very much for the options you offered us.
In my case, I have only been able to use the Visual Programmer perspective to make sas studio work.
Although the problem hasn't gone away yet.
Attached is a screenshot with the execution of a libname sentence.
Could we have news on the progress of this problem?
Thx.
Susana
That's SAS Academics on Demand and not SAS UE. For issues with SAS Academics on Demand, you need to contact SAS. Also, it's sucky, but it' has problems with language settings often and I noticed you're using a different language on your computer. If you can try with english settings it may work.
@msusancc_gmail_com wrote:
Hello Casey,
Thank you very much for the options you offered us.
In my case, I have only been able to use the Visual Programmer perspective to make sas studio work.
Although the problem hasn't gone away yet.
Attached is a screenshot with the execution of a libname sentence.
Could we have news on the progress of this problem?
Thx.
Susana
The SAS Studio 3.7 hotfix (C7W003) with the fix for this issue has been released, but it appears it hasn't been applied to the SAS OnDemand for Academics servers yet. I inquired to see if I can find out the plans for when it will be applied.
UPDATE: I just got word that the hot fix is planned to be applied next week, so it should be resolved soon.
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.