<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS options management in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847788#M10702</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;As much as I understand the hierarchy of options in SAS, it is in that order:&lt;/P&gt;
&lt;P&gt;1. Options assigned at SAS installation(configuration file)&lt;/P&gt;
&lt;P&gt;2. Options assigned at&amp;nbsp;SAS initiation (autoexec file)&lt;/P&gt;
&lt;P&gt;3. Options changed by submitted code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that SAS administrator of SAS studio of the site, may change those options. My experience is with he Students vaersion (not used any more) which is a variance of SAS studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I retired 6 years ago and may be i'm not familiar enough with the todays platforms.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not quite complete.&lt;/P&gt;
&lt;P&gt;1) The options set by the configuration file used.&amp;nbsp; Which configuration file to use is dependent upon how SAS is started.&amp;nbsp; You generally setup the configuration files when you install SAS, but you can make and use new ones at any time.&lt;/P&gt;
&lt;P&gt;2) Options set on the command line when SAS is started .&lt;/P&gt;
&lt;P&gt;3) Any options statements statements run by startup commands.&amp;nbsp; In addition to the autoexec.sas file there is also -initcmd and initstmt options that could cause options statements to be run.&lt;/P&gt;
&lt;P&gt;4) Any options statements executed.&amp;nbsp; Or possibly using PROC OPTIONS to load saved options from a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS/Studio (and I assume other front-end tools like Enterprise Guide) you also have to deal with the SAS code that that the front end submits before (and after) your code that it sends to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SAS/Studio you can change preferences so that the generated code is shown in the SAS log.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1670249234118.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78033iD4D4CB3DC9914E98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1670249234118.png" alt="Tom_0-1670249234118.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What code is generated depends on other preferences, but I think the main things that change are related to output destinations.&amp;nbsp; In this example from SAS On Demand for Academics only code lines 68 and 69 were what was in the code I submitted.&lt;/P&gt;
&lt;PRE&gt; 1          OPTIONS NOSYNTAXCHECK;
 2          TITLE;
 3          FOOTNOTE;
 4          OPTIONS LOCALE=en_US DFLANG=LOCALE;
 5          DATA _NULL_;
 6          RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 7          OPTIONS VALIDVARNAME=ANY;
 8          OPTIONS VALIDMEMNAME=EXTEND;
 9          FILENAME _HTMLOUT TEMP;
 10         FILENAME _GSFNAME TEMP;
 11         FILENAME _DATAOUT TEMP;
 12         %LET SYSCC=0;
 13         %LET _CLIENTAPP='SAS Studio';
 14         %LET _CLIENTAPPABREV=Studio;
 15         %LET _CLIENTAPPVERSION=3.8;
 16         %LET _CLIENTVERSION=3.8;
 17         %LET _CLIENTMODE=wip;
 18         %LET _SASSERVERNAME=%BQUOTE(SASApp);
 19         %LET _SASHOSTNAME=%BQUOTE(odaws04-usw2);
 20         %LET _SASPROGRAMFILEHOST=%BQUOTE(odaws04-usw2);
 21         %LET _CLIENTUSERID=%BQUOTE(tom.abernathy);
 22         %LET _CLIENTUSERNAME=%BQUOTE(tom.abernathy);
 23         %LET CLIENTMACHINE=%BQUOTE(148.168.40.5);
 24         %LET _CLIENTMACHINE=%BQUOTE(148.168.40.5);
 25         %let SASWORKLOCATION="%sysfunc(getoption(work))/";
 26         FILENAME _CWD '.';
 27         DATA _NULL_;
 28         CALL SYMPUT('_SASWORKINGDIR',PATHNAME('_CWD'));
 29         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 30         FILENAME _CWD;
 NOTE: Fileref _CWD has been deassigned.
 31         
 32         %LET _SASPROGRAMFILE = %NRQUOTE(%NRSTR(Program 1));
 33         %LET _BASEURL = %BQUOTE(https://odamid-usw2.oda.sas.com/SASStudio/);
 34         %LET _EXECENV=SASStudio;
 35         DATA _NULL_;
 36         CALL SYMPUT("GRAPHINIT","");
 37         CALL SYMPUT("GRAPHTERM","");
 38         RC=TSLVL('SASXGOPT','N');
 39         _ERROR_=0;
 40         IF (RC^=' ') THEN DO;
 41         CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
 42         CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
 43         END;
 44         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 45         DATA _NULL_;
 46         RC=SYSPROD("PRODNUM002");
 47         IF (RC^=1) THEN DO;
 48         CALL SYMPUT("GRAPHINIT","");
 49         CALL SYMPUT("GRAPHTERM","");
 50         END;
 51         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 52         %LET _DATAOUT_MIME_TYPE=;
 53         %LET _DATAOUT_NAME=;
 54         %LET _DATAOUT_TABLE=;
 55         %LET _DATAOUT_URL=;
 56         %SYMDEL _DATAOUT_MIME_TYPE _DATAOUT_NAME _DATAOUT_URL _DATAOUT_TABLE;
 57         %LET _SASWS_ = %BQUOTE(/home/tom.abernathy);
 58         %LET _SASWSTEMP_=%BQUOTE(/home/tom.abernathy/.sasstudio/.images/551b6512-45e9-4c4b-8400-4cb3879218d5);
 59         ODS LISTING CLOSE;
 60         ODS AUTONAVIGATE OFF;
 61         ODS GRAPHICS ON;
 62         ODS HTML5 (ID=WEB) DEVICE=PNG GPATH="&amp;amp;_SASWSTEMP_" ENCODING=utf8  FILE=_HTMLOUT (TITLE='Results: Program 1')
 62       ! STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' OUTLINE='ON' SVG_MODE='INLINE'
 62       ! CSS_PREFIX='.ods_551b6512-45e9-4c4b-8400-4cb3879218d5' BODY_ID='div_551b6512-45e9-4c4b-8400-4cb3879218d5' );
 NOTE: Writing HTML5(WEB) Body file: _HTMLOUT
 63         &amp;amp;GRAPHINIT;
 64         OPTIONS FIRSTOBS=1;
 65         OPTIONS OBS=MAX;
 66         OPTIONS DTRESET DATE NUMBER NOTES;
 67         OPTIONS NOSYNTAXCHECK;
 68         
 69         proc print data=sashelp.class;
 70         run;
 
 NOTE: There were 19 observations read from the data set SASHELP.CLASS.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.02 seconds
       cpu time            0.03 seconds
       
 
 71         
 72         OPTIONS NOSYNTAXCHECK;
 73         ODS HTML CLOSE;
 74         &amp;amp;GRAPHTERM; ;*';*";*/;RUN;QUIT;
 75         QUIT;RUN;
 76         ODS HTML5 (ID=WEB) CLOSE;
 77         
 78         FILENAME _GSFNAME;
 NOTE: Fileref _GSFNAME has been deassigned.
 79         DATA _NULL_;
 80         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
 82         &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 14:12:00 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-12-05T14:12:00Z</dc:date>
    <item>
      <title>SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843069#M10628</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using SAS 9.4 with S&lt;SPAN&gt;AS Studio 3.81, we are used to update some SAS options default values like these:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options nodate validarname=upcase;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We observed that these values do not follow from one execution of a program to another.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to reproduce this behaviour?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Create a first program, add "options validvarname=upcase; proc options;run;" and run it:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;validvarname is well passed to upcase&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Then create a second program, add "proc options;run"; and run it:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;validvarname has&amp;nbsp;been reinitialized by his default value (any)!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is this behavior linked to SAS Studio interface?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is it related to a setting in our environment?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 09:22:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843069#M10628</guid>
      <dc:creator>BenoîtOry</dc:creator>
      <dc:date>2022-11-08T09:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843286#M10629</link>
      <description>&lt;P&gt;1. running "options .." doen't need to run "proc options" in order to activate it.&lt;/P&gt;
&lt;P&gt;2. you can assign more then one option in "options" statement, as in&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate  validvarname=upcase ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;3. You can add above line into the autoexec.sas&amp;nbsp; program, which is executed within entering sas studio.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843286#M10629</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2022-11-09T07:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843291#M10630</link>
      <description>&lt;P&gt;I understand what I see by reading that:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p0yzcadln7ame4n1hpr06f8a2nwl.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p0yzcadln7ame4n1hpr06f8a2nwl.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:30:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843291#M10630</guid>
      <dc:creator>BenoîtOry</dc:creator>
      <dc:date>2022-11-09T07:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843295#M10631</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415534"&gt;@BenoîtOry&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I understand what I see by reading that:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p0yzcadln7ame4n1hpr06f8a2nwl.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p0yzcadln7ame4n1hpr06f8a2nwl.htm&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Would be interesting to know where those options are set and how to modify them.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843295#M10631</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-11-09T07:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843297#M10632</link>
      <description>&lt;P&gt;The article you sent deals with options statement submitted by you, that is when you are alraedy in sas studio,&lt;/P&gt;
&lt;P&gt;If you want that some options will be automaticaly set for all sessions&amp;nbsp; in future, you can add the options statement in the autoexec.sas program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is a private installation you can do it yourself, otherwise you can ask the sas administartor to it for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843297#M10632</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2022-11-09T07:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843306#M10633</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;If you want that some options will be automaticaly set for all sessions&amp;nbsp; in future, you can add the options statement in the autoexec.sas program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This doesn't work with SAS Studio, because the mentioned options are set automatically each time code is executed. So the only "solution" i can see, is using %include as first statement in each program loading/executing a program containing all options that one wants not be change by stupid automatism.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 09:35:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843306#M10633</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-11-09T09:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843332#M10634</link>
      <description>&lt;P&gt;As much as I understand the hierarchy of options in SAS, it is in that order:&lt;/P&gt;
&lt;P&gt;1. Options assigned at SAS installation(configuration file)&lt;/P&gt;
&lt;P&gt;2. Options assigned at&amp;nbsp;SAS initiation (autoexec file)&lt;/P&gt;
&lt;P&gt;3. Options changed by submitted code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that SAS administrator of SAS studio of the site, may change those options. My experience is with he Students vaersion (not used any more) which is a variance of SAS studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I retired 6 years ago and may be i'm not familiar enough with the todays platforms.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 11:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843332#M10634</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2022-11-09T11:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843360#M10635</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;If you want that some options will be automaticaly set for all sessions&amp;nbsp; in future, you can add the options statement in the autoexec.sas program.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This doesn't work with SAS Studio, because the mentioned options are set automatically each time code is executed. So the only "solution" i can see, is using %include as first statement in each program loading/executing a program containing all options that one wants not be change by stupid automatism.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I haven't used Studio, but (as described in the linked documentation), that Studio behavior of resetting a list of options for &lt;STRONG&gt;every code submission&lt;/STRONG&gt; is pretty scary to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG also adds wrapper code which resets options for every submission.&amp;nbsp; But most of those options are at least configurable in by a user in EG.&amp;nbsp; So you can set the values you want.&amp;nbsp; EG also allows a user to define "pre-code" that can be automatically added to every submission, which would be another way to solve this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, SAS seems to make IDE's more and more programmer friendly over time.&amp;nbsp; I would think a ballot item to make these system options configurable by the Studio user (and/or Studio admin) would be a good idea.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And maybe another ballot submission about Studio user-configurable precode.&amp;nbsp; EG does it very nicely.&amp;nbsp; You can specify precode/postcode for session start/end, and separately specify precode/postcode for every submission.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/843360#M10635</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-11-09T13:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/846467#M10664</link>
      <description>&lt;P&gt;The SASv9.cfg and Autoexec.sas (and the usermod versions) are read when SAS sessions starts.&lt;BR /&gt;You are using SAS Studio and provided you run the code from the SAS studio in the normal course any option set in the .cfg OR autoexec files should be available to all programs.&lt;BR /&gt;If you are having any issue do seek assistance from your SAS administrator. If you have any further questions, please let us know a bit more about your environment.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 08:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/846467#M10664</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-11-27T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/846468#M10665</link>
      <description>&lt;P&gt;Some of the options which Studio sends before every submission can be set through Studio settings, e.g. VALIDVARNAME or VALIDMEMNAME.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 08:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/846468#M10665</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-27T08:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/846470#M10666</link>
      <description>&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p0yzcadln7ame4n1hpr06f8a2nwl.htm" target="_self"&gt;link&lt;/A&gt; to the docu&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415534"&gt;@BenoîtOry&lt;/a&gt;&amp;nbsp;shared clearly states that these are options SAS Studio resets for every single code execution which will overwrite anything you define in a .cfg or autoexec that gets executed during SAS invocation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415534"&gt;@BenoîtOry&lt;/a&gt;&amp;nbsp; What might help is to define&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/webeditorcdc/v_003/webeditorug/p0nd1xksfqq1l4n131zhatk8ada5.htm" target="_self"&gt;Custom SAS Code&lt;/A&gt; for SAS Studio which then sets the options as you want them. If that works like for SAS EG then such a definition is user specific but for all projects and the code should execute after the SAS Studio generated one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 09:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/846470#M10666</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-11-27T09:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847781#M10701</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp; has indicated is about the option the user sets.&lt;BR /&gt;However if all options are set in Autoexec or sasv9 they should persist. It will be wonderful if&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/415534"&gt;@BenoîtOry&lt;/a&gt;&amp;nbsp; gives it a try,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 13:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847781#M10701</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-12-05T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847788#M10702</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;As much as I understand the hierarchy of options in SAS, it is in that order:&lt;/P&gt;
&lt;P&gt;1. Options assigned at SAS installation(configuration file)&lt;/P&gt;
&lt;P&gt;2. Options assigned at&amp;nbsp;SAS initiation (autoexec file)&lt;/P&gt;
&lt;P&gt;3. Options changed by submitted code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that SAS administrator of SAS studio of the site, may change those options. My experience is with he Students vaersion (not used any more) which is a variance of SAS studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I retired 6 years ago and may be i'm not familiar enough with the todays platforms.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not quite complete.&lt;/P&gt;
&lt;P&gt;1) The options set by the configuration file used.&amp;nbsp; Which configuration file to use is dependent upon how SAS is started.&amp;nbsp; You generally setup the configuration files when you install SAS, but you can make and use new ones at any time.&lt;/P&gt;
&lt;P&gt;2) Options set on the command line when SAS is started .&lt;/P&gt;
&lt;P&gt;3) Any options statements statements run by startup commands.&amp;nbsp; In addition to the autoexec.sas file there is also -initcmd and initstmt options that could cause options statements to be run.&lt;/P&gt;
&lt;P&gt;4) Any options statements executed.&amp;nbsp; Or possibly using PROC OPTIONS to load saved options from a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS/Studio (and I assume other front-end tools like Enterprise Guide) you also have to deal with the SAS code that that the front end submits before (and after) your code that it sends to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With SAS/Studio you can change preferences so that the generated code is shown in the SAS log.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1670249234118.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78033iD4D4CB3DC9914E98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1670249234118.png" alt="Tom_0-1670249234118.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What code is generated depends on other preferences, but I think the main things that change are related to output destinations.&amp;nbsp; In this example from SAS On Demand for Academics only code lines 68 and 69 were what was in the code I submitted.&lt;/P&gt;
&lt;PRE&gt; 1          OPTIONS NOSYNTAXCHECK;
 2          TITLE;
 3          FOOTNOTE;
 4          OPTIONS LOCALE=en_US DFLANG=LOCALE;
 5          DATA _NULL_;
 6          RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 7          OPTIONS VALIDVARNAME=ANY;
 8          OPTIONS VALIDMEMNAME=EXTEND;
 9          FILENAME _HTMLOUT TEMP;
 10         FILENAME _GSFNAME TEMP;
 11         FILENAME _DATAOUT TEMP;
 12         %LET SYSCC=0;
 13         %LET _CLIENTAPP='SAS Studio';
 14         %LET _CLIENTAPPABREV=Studio;
 15         %LET _CLIENTAPPVERSION=3.8;
 16         %LET _CLIENTVERSION=3.8;
 17         %LET _CLIENTMODE=wip;
 18         %LET _SASSERVERNAME=%BQUOTE(SASApp);
 19         %LET _SASHOSTNAME=%BQUOTE(odaws04-usw2);
 20         %LET _SASPROGRAMFILEHOST=%BQUOTE(odaws04-usw2);
 21         %LET _CLIENTUSERID=%BQUOTE(tom.abernathy);
 22         %LET _CLIENTUSERNAME=%BQUOTE(tom.abernathy);
 23         %LET CLIENTMACHINE=%BQUOTE(148.168.40.5);
 24         %LET _CLIENTMACHINE=%BQUOTE(148.168.40.5);
 25         %let SASWORKLOCATION="%sysfunc(getoption(work))/";
 26         FILENAME _CWD '.';
 27         DATA _NULL_;
 28         CALL SYMPUT('_SASWORKINGDIR',PATHNAME('_CWD'));
 29         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 30         FILENAME _CWD;
 NOTE: Fileref _CWD has been deassigned.
 31         
 32         %LET _SASPROGRAMFILE = %NRQUOTE(%NRSTR(Program 1));
 33         %LET _BASEURL = %BQUOTE(https://odamid-usw2.oda.sas.com/SASStudio/);
 34         %LET _EXECENV=SASStudio;
 35         DATA _NULL_;
 36         CALL SYMPUT("GRAPHINIT","");
 37         CALL SYMPUT("GRAPHTERM","");
 38         RC=TSLVL('SASXGOPT','N');
 39         _ERROR_=0;
 40         IF (RC^=' ') THEN DO;
 41         CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
 42         CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
 43         END;
 44         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 45         DATA _NULL_;
 46         RC=SYSPROD("PRODNUM002");
 47         IF (RC^=1) THEN DO;
 48         CALL SYMPUT("GRAPHINIT","");
 49         CALL SYMPUT("GRAPHTERM","");
 50         END;
 51         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 52         %LET _DATAOUT_MIME_TYPE=;
 53         %LET _DATAOUT_NAME=;
 54         %LET _DATAOUT_TABLE=;
 55         %LET _DATAOUT_URL=;
 56         %SYMDEL _DATAOUT_MIME_TYPE _DATAOUT_NAME _DATAOUT_URL _DATAOUT_TABLE;
 57         %LET _SASWS_ = %BQUOTE(/home/tom.abernathy);
 58         %LET _SASWSTEMP_=%BQUOTE(/home/tom.abernathy/.sasstudio/.images/551b6512-45e9-4c4b-8400-4cb3879218d5);
 59         ODS LISTING CLOSE;
 60         ODS AUTONAVIGATE OFF;
 61         ODS GRAPHICS ON;
 62         ODS HTML5 (ID=WEB) DEVICE=PNG GPATH="&amp;amp;_SASWSTEMP_" ENCODING=utf8  FILE=_HTMLOUT (TITLE='Results: Program 1')
 62       ! STYLE=Htmlblue OPTIONS(BITMAP_MODE='INLINE' OUTLINE='ON' SVG_MODE='INLINE'
 62       ! CSS_PREFIX='.ods_551b6512-45e9-4c4b-8400-4cb3879218d5' BODY_ID='div_551b6512-45e9-4c4b-8400-4cb3879218d5' );
 NOTE: Writing HTML5(WEB) Body file: _HTMLOUT
 63         &amp;amp;GRAPHINIT;
 64         OPTIONS FIRSTOBS=1;
 65         OPTIONS OBS=MAX;
 66         OPTIONS DTRESET DATE NUMBER NOTES;
 67         OPTIONS NOSYNTAXCHECK;
 68         
 69         proc print data=sashelp.class;
 70         run;
 
 NOTE: There were 19 observations read from the data set SASHELP.CLASS.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.02 seconds
       cpu time            0.03 seconds
       
 
 71         
 72         OPTIONS NOSYNTAXCHECK;
 73         ODS HTML CLOSE;
 74         &amp;amp;GRAPHTERM; ;*';*";*/;RUN;QUIT;
 75         QUIT;RUN;
 76         ODS HTML5 (ID=WEB) CLOSE;
 77         
 78         FILENAME _GSFNAME;
 NOTE: Fileref _GSFNAME has been deassigned.
 79         DATA _NULL_;
 80         RUN;
 
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;
 82         &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 14:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847788#M10702</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-05T14:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847792#M10703</link>
      <description>My point is, if there are options that are needed across all sessions, &lt;BR /&gt;it is better to set them in the configuration files.&lt;BR /&gt;This is something I would prefer to do.&lt;BR /&gt;I know there could be other good and wonderful approaches.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Dec 2022 14:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847792#M10703</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-12-05T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847884#M10704</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;- What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;says is correct. Regardless of what you put in your AUTOEXEC or CONFIG files, certain options like VALIDVARNAME get reset everytime you submit any code in SAS Studio. I just checked this in Version 3.81 and that is indeed the way it behaves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I find this really annoying. It is another example of where SAS Studio behaviour differs from Enterprise Guide and the SAS Windowing System. For example if you are migrating from SAS 9 / EG to SAS Viya / SAS Studio and your application relies on&amp;nbsp;VALIDVARNAME always being set to V7, then you can't rely on&amp;nbsp;AUTOEXEC or CONFIG files to set the option the way you want, nor can you set the option in one program and expect it to retain the setting for the rest of your SAS session. AFAIK, there is no global way of changing this behaviour.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/847884#M10704</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-05T19:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848022#M10711</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@&lt;FONT color="#146cac"&gt;&lt;U&gt;SASKiwi and&lt;/U&gt;&lt;/FONT&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;for enlightening about this fact.&lt;/P&gt;
&lt;P&gt;It would be good if SAS can do something about it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 03:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848022#M10711</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-12-06T03:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848180#M10713</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tom_grant_0-1670351532702.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78128i190B4FF0EC7F4284/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tom_grant_0-1670351532702.png" alt="tom_grant_0-1670351532702.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;FYI You can set options (like validvarname) using the More Application Option button &amp;amp; selecting preferences &amp;amp; saving.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 18:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848180#M10713</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2022-12-06T18:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848182#M10714</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124967"&gt;@tom_grant&lt;/a&gt;&amp;nbsp; - Yes, I'd seen that thanks. My point being that you can't enforce it as a SAS installation or application default even though you can do it for programs not run in SAS Studio. It causes inconsistencies when running the same applications in say both SAS Studio and batch mode for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I have a SAS application that sets VALIDVARNAME = V7 in a control or master program that sets up the application environment. It works as intended in Enterprise Guide or batch across all users regardless of how many program submits you do. It won't work in SAS Studio unless I get all users to individually configure their SAS Studio options. There should be a way to turn off compulsory submission options globally rather than just override them.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 19:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848182#M10714</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-06T19:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848184#M10715</link>
      <description>&lt;P&gt;In the similar menu in EG, there&amp;nbsp; you can choose to set validvarname&amp;nbsp; to V7/Any/etc or you cat set it to "use setting from server".&amp;nbsp; Is there a "use setting from server" choice for Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bigger annoyance for me as a developer (not an admin), as I understand in Studio if&amp;nbsp; I submit an options statement to change the value of VALIDVARNAME, and then submit another block of code, the value of VALIDVARNAME will be reset for the second submission.&amp;nbsp; That seems like it would be really annoying.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 19:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/848184#M10715</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-12-06T19:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS options management</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/849229#M10723</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;- EG also sets VALIDVARNAME = EXTEND by default, but honours any previous setting of this option either in an AUTOEXEC or any other SAS program. This is also how the SAS Windowing System and SAS batch jobs work. This is how SAS Studio should behave, but it doesn't and going around configuring all SAS Studio user sessions individually doesn't sound like a good fix to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are absolutely correct in your observations, but to me the biggest problem is SAS Studio doesn't behave the same as other types of SAS sessions. I build SAS applications so they run the same in any environment: SAS Studio, EG, batch mode. At the moment I can't guarantee that my SAS applications will run correctly in all SAS Studio sessions as they all set the VALIDVARNAME = V7 option at the start of each one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simply don't see the reason to reset SAS options for every program submission. There should be a installation default setting to turn this SAS Studio feature off.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 19:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-options-management/m-p/849229#M10723</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-12T19:16:41Z</dc:date>
    </item>
  </channel>
</rss>

