<?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: How to identify the SAS keywords? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12324#M1635</link>
    <description>Lani,&lt;BR /&gt;
&lt;BR /&gt;
One of the challenges for a learner is that SAS keywords are context sensitive.  Because of that context sensitivity, I think, I've never seen a general keyword list.  This allows for flexible programming, but can also lead to confusing code, particularly for a newbie.  For instance,&lt;BR /&gt;
&lt;BR /&gt;
DATA data.data;&lt;BR /&gt;
&lt;BR /&gt;
is a legitimate SAS statement with one keyword and one (compound) argument.  But please don't write code like that, it can be really hard to untangle when there is a problem.&lt;BR /&gt;
&lt;BR /&gt;
One of the better ways to find out about keywords in SAS is to go to support.sas.com and enter "keyword YourSpecificKeyword" into the search box.  It doesn't always work, but it has a lot more "hits" than "misses."</description>
    <pubDate>Thu, 05 Nov 2009 14:49:26 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-11-05T14:49:26Z</dc:date>
    <item>
      <title>How to identify the SAS keywords?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12322#M1633</link>
      <description>Hello ~&lt;BR /&gt;
&lt;BR /&gt;
I am learning SAS basic by reading documentation and examples. I'd like to know how to identify the SAS keywords. Please see the below example:&lt;BR /&gt;
&lt;BR /&gt;
data groc; &lt;BR /&gt;
   input Region $9. Manager $ Department $ Sales;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
Southeast    Hayes       Paper       250&lt;BR /&gt;
Southeast    Hayes       Produce     100&lt;BR /&gt;
Southeast    Hayes       Canned      120&lt;BR /&gt;
Southeast    Hayes       Meat         80&lt;BR /&gt;
...more lines of data...&lt;BR /&gt;
Northeast    Fuller      Paper       200&lt;BR /&gt;
Northeast    Fuller      Produce     300&lt;BR /&gt;
Northeast    Fuller      Canned      420&lt;BR /&gt;
Northeast    Fuller      Meat        125&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=groc;   &lt;BR /&gt;
   by region department;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
options nobyline nodate pageno=1 &lt;BR /&gt;
        linesize=64 pagesize=20;  &lt;BR /&gt;
&lt;BR /&gt;
proc chart data=groc;   &lt;BR /&gt;
   by region department;&lt;BR /&gt;
   vbar manager / type=sum sumvar=sales;&lt;BR /&gt;
   title1 'This chart shows #byval2 sales';&lt;BR /&gt;
   title2 'in the #byval(region)..';&lt;BR /&gt;
run;&lt;BR /&gt;
options byline;   &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Could someone please help me to understand the meaning of the followings and point out what are the SAS keywords that are used. Where can I read more about SAS keywords or SAS options? Thank you VERY much for your help. I appreciate your value time.&lt;BR /&gt;
&lt;BR /&gt;
1.      vbar manager / type=sum sumvar=sales;&lt;BR /&gt;
2.      #byval2 &lt;BR /&gt;
3.      #byval(region)..';&lt;BR /&gt;
4.      nobyline&lt;BR /&gt;
5.      options byline;  &lt;BR /&gt;
6.      options nobyline nodate pageno=1</description>
      <pubDate>Thu, 05 Nov 2009 04:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12322#M1633</guid>
      <dc:creator>Lani</dc:creator>
      <dc:date>2009-11-05T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the SAS keywords?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12323#M1634</link>
      <description>For general SAS documentation (including keywords, syntax etc) see on-line doc: &lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/index.html" target="_blank"&gt;http://support.sas.com/documentation/index.html&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
For PROC GCHART specifics, see &lt;A href="http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/a000723580.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/a000723580.htm&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 05 Nov 2009 08:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12323#M1634</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-11-05T08:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify the SAS keywords?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12324#M1635</link>
      <description>Lani,&lt;BR /&gt;
&lt;BR /&gt;
One of the challenges for a learner is that SAS keywords are context sensitive.  Because of that context sensitivity, I think, I've never seen a general keyword list.  This allows for flexible programming, but can also lead to confusing code, particularly for a newbie.  For instance,&lt;BR /&gt;
&lt;BR /&gt;
DATA data.data;&lt;BR /&gt;
&lt;BR /&gt;
is a legitimate SAS statement with one keyword and one (compound) argument.  But please don't write code like that, it can be really hard to untangle when there is a problem.&lt;BR /&gt;
&lt;BR /&gt;
One of the better ways to find out about keywords in SAS is to go to support.sas.com and enter "keyword YourSpecificKeyword" into the search box.  It doesn't always work, but it has a lot more "hits" than "misses."</description>
      <pubDate>Thu, 05 Nov 2009 14:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-identify-the-SAS-keywords/m-p/12324#M1635</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-11-05T14:49:26Z</dc:date>
    </item>
  </channel>
</rss>

