<?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: proc options question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14780#M2472</link>
    <description>proc options;&lt;BR /&gt;
run; &lt;BR /&gt;
can be used to check all default options.&lt;BR /&gt;
&lt;BR /&gt;
Proc options&lt;BR /&gt;
group =errorHandling;&lt;BR /&gt;
Run ;&lt;BR /&gt;
&lt;BR /&gt;
can be used to check certain group of options;&lt;BR /&gt;
&lt;BR /&gt;
proc options option = pagesize ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
can be used to check single option.&lt;BR /&gt;
&lt;BR /&gt;
However, I am beginner too. Waiting for real expert to answer your question.</description>
    <pubDate>Sun, 10 Oct 2010 04:56:59 GMT</pubDate>
    <dc:creator>piggy</dc:creator>
    <dc:date>2010-10-10T04:56:59Z</dc:date>
    <item>
      <title>proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14779#M2471</link>
      <description>Experts:&lt;BR /&gt;
&lt;BR /&gt;
If you only need to find out a few specific system options, what is the most efficient way? &lt;BR /&gt;
&lt;BR /&gt;
I tried a couple ways and failed:&lt;BR /&gt;
proc options option = pagesize option=linesize;&lt;BR /&gt;
proc options options = pagesize linesize;&lt;BR /&gt;
&lt;BR /&gt;
I studied the Help. The group =  is certainly better than just proc options;&lt;BR /&gt;
Any better ways?&lt;BR /&gt;
Thank you!&lt;BR /&gt;
the lazy beginner</description>
      <pubDate>Sun, 10 Oct 2010 00:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14779#M2471</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-10T00:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14780#M2472</link>
      <description>proc options;&lt;BR /&gt;
run; &lt;BR /&gt;
can be used to check all default options.&lt;BR /&gt;
&lt;BR /&gt;
Proc options&lt;BR /&gt;
group =errorHandling;&lt;BR /&gt;
Run ;&lt;BR /&gt;
&lt;BR /&gt;
can be used to check certain group of options;&lt;BR /&gt;
&lt;BR /&gt;
proc options option = pagesize ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
can be used to check single option.&lt;BR /&gt;
&lt;BR /&gt;
However, I am beginner too. Waiting for real expert to answer your question.</description>
      <pubDate>Sun, 10 Oct 2010 04:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14780#M2472</guid>
      <dc:creator>piggy</dc:creator>
      <dc:date>2010-10-10T04:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14781#M2473</link>
      <description>If by 'specific' you mean that you exactly know the option's name then I prefer things like&lt;BR /&gt;
[pre]&lt;BR /&gt;
%* display selected options on log ;&lt;BR /&gt;
%put %sysfunc(getoption(linesize,keyword)) ;&lt;BR /&gt;
%put %sysfunc(getoption(pagesize,keyword)) ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
If you change these options within a SAS session (be it foreground or background) temporarily, good practice is to do it somewhat like&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let _ls = %sysfunc(getoption(linesize,keyword)) ;&lt;BR /&gt;
%let _ps = %sysfunc(getoption(pagesize,keyword)) ;&lt;BR /&gt;
options linesize=200 pagesize=100 ; /* hypothetic values */&lt;BR /&gt;
%* do some SAS things here ;&lt;BR /&gt;
options &amp;amp;_ls &amp;amp;_ps ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Alternatively you could use procedures OPTSAVE and OPTLOAD to front-end temporary modifications.</description>
      <pubDate>Sun, 10 Oct 2010 07:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14781#M2473</guid>
      <dc:creator>Robert_Bardos</dc:creator>
      <dc:date>2010-10-10T07:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14782#M2474</link>
      <description>Thank you. There is so much to learn!</description>
      <pubDate>Sun, 10 Oct 2010 18:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14782#M2474</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-10T18:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14783#M2475</link>
      <description>Great suggestions! Also helped me to learn more about SAS macro. (I've only read briefly about the topic before.) Thank you!</description>
      <pubDate>Sun, 10 Oct 2010 18:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14783#M2475</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-10T18:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14784#M2476</link>
      <description>when wanting the value of system options, avoid typing with a macro like:&lt;BR /&gt;
%macro sy(op) /des='get system option with keyword' ; &lt;BR /&gt;
%sysfunc( getoption(&amp;amp;op, keyword)) &lt;BR /&gt;
%mend  sy ;&lt;BR /&gt;
then &lt;BR /&gt;
%put %sy(ls) %sy(ps) %sy(sasautos);&lt;BR /&gt;
becomes a concise and convenient way to check the value of an option (not much more than the option name itself !)&lt;BR /&gt;
similarly&lt;BR /&gt;
%let old_opts = %sy(mlogic) %sy(mprint) %sy(symbolgen) ;&lt;BR /&gt;
 provides a brief way to collect and store options before changing them, as you might want when you start some more macro development &lt;BR /&gt;
 &lt;BR /&gt;
learn the convenience of placing your macros in your sasautos folder and inserting your sasautos folder at the beginning of the SASAUTOS system option, with something like&lt;BR /&gt;
option sasautos=( mymacros sasautos ) ;&lt;BR /&gt;
in your autoexec.sas&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
      <pubDate>Mon, 11 Oct 2010 14:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14784#M2476</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-10-11T14:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14785#M2477</link>
      <description>Awesome. I'm going to file this one for the days when the word macro no longer intimidates me!</description>
      <pubDate>Mon, 11 Oct 2010 15:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14785#M2477</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-11T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14786#M2478</link>
      <description>I'm replying to your original question.&lt;BR /&gt;
Using proc options to check multiple formats is just fine. The first way you presented it is correct and will work. You said it did not work?  (Your second method will produce an error. Since you didn't have "option=" before "linesize, SAS trys to interpret "linesize" as another option for the procedure and fails.) &lt;BR /&gt;
&lt;BR /&gt;
You can also add the option 'value' and you will get more information, e.g.&lt;BR /&gt;
&lt;BR /&gt;
proc options option=pagesize option=linesize value; &lt;BR /&gt;
run;</description>
      <pubDate>Tue, 12 Oct 2010 15:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14786#M2478</guid>
      <dc:creator>martha_sas</dc:creator>
      <dc:date>2010-10-12T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14787#M2479</link>
      <description>Thank you for the reply. I double-checked. Here is the log I got. For some reason, only the value for second option comes back.&lt;BR /&gt;
&lt;BR /&gt;
1    proc options option = pagesize option=linesize;&lt;BR /&gt;
2    run;&lt;BR /&gt;
&lt;BR /&gt;
    SAS (r) Proprietary Software Release 9.2  TS2M2&lt;BR /&gt;
&lt;BR /&gt;
 LINESIZE=96       Line size for SAS log and SAS procedure output&lt;BR /&gt;
NOTE: PROCEDURE OPTIONS used (Total process time):&lt;BR /&gt;
&lt;BR /&gt;
3    proc options option = pagesize option=linesize value;&lt;BR /&gt;
4    run;&lt;BR /&gt;
&lt;BR /&gt;
    SAS (r) Proprietary Software Release 9.2  TS2M2&lt;BR /&gt;
&lt;BR /&gt;
Option Value Information For SAS Option LINESIZE&lt;BR /&gt;
    Option Value: 96&lt;BR /&gt;
    Option Scope: DMS Process&lt;BR /&gt;
    How option value set:  Unknown&lt;BR /&gt;
NOTE: PROCEDURE OPTIONS used (Total process time):</description>
      <pubDate>Wed, 13 Oct 2010 05:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14787#M2479</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-13T05:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14788#M2480</link>
      <description>Now I know why it works for me and not you. You're running SAS 9.2m2 and I was using 9.3. At 9.2m2 you can only get information on one option at a time. At 9.3 there's more flexibility and you can even to this: &lt;BR /&gt;
proc options option=(linesize pagesize);&lt;BR /&gt;
But you can't do that at 9.2m2.&lt;BR /&gt;
&lt;BR /&gt;
I didn't realize that until I saw your log which version you were using.</description>
      <pubDate>Wed, 13 Oct 2010 16:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14788#M2480</guid>
      <dc:creator>martha_sas</dc:creator>
      <dc:date>2010-10-13T16:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14789#M2481</link>
      <description>I see. I didn't consider the possibility of version difference at all. Thank you.</description>
      <pubDate>Thu, 14 Oct 2010 21:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14789#M2481</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-14T21:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14790#M2482</link>
      <description>There is a dictionary table (dictionary.options)  which can do the same thing.&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 select optname,setting&lt;BR /&gt;
  from dictionary.options&lt;BR /&gt;
   where optname in ('LINESIZE' 'PAGESIZE' 'COMPRESS');&lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 18 Oct 2010 00:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14790#M2482</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-10-18T00:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc options question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14791#M2483</link>
      <description>Thank you. Tried and it worked nicely.</description>
      <pubDate>Tue, 19 Oct 2010 23:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-options-question/m-p/14791#M2483</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2010-10-19T23:34:37Z</dc:date>
    </item>
  </channel>
</rss>

