BookmarkSubscribeRSS Feed
JackHamilton
Lapis Lazuli | Level 10

@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
 
 

 

Reeza
Super User
I didn't say "couldn't", because I know it's possible. Just something you really shouldn't do though, IMO.
msusancc_gmail_com
Calcite | Level 5

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

pabram
Calcite | Level 5

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.

 

msusancc_gmail_com
Calcite | Level 5

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

msusancc_gmail_com
Calcite | Level 5

Somebody have any news?

 

Thanks

Susana

PR12
Calcite | Level 5

Hello Team,

 

I have the same issue, i form Colombia.

 

Regards

pabram
Calcite | Level 5

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

 

 

 

CaseySmith
SAS Employee

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

Mimi2
Calcite | Level 5

it is still not running...

Reeza
Super User
I'm assuming you're a new user. Not running doesn't really tell us anything. I strongly suggest creating a new thread and explaining what your problem is and what you've tried. For example:

I'm having trouble getting my SAS programs to finish running. I've searched and tried the solutions in <insert link> thread, including A, B and C. Here is the code I'm trying to run. My data set is about 50000 rows so its a manageable size. I have been able to run other programs successfully.
msusancc_gmail_com
Calcite | Level 5

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

Reeza
Super User

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


 

CaseySmith
SAS Employee

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 28 replies
  • 8660 views
  • 4 likes
  • 9 in conversation