<?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: What is the meaning of underbar(_)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307534#M65883</link>
    <description>&lt;P&gt;Haha, usually I get ashamed when I ask a question. But for this one, I feel especially ashamed even after getting the answer. Since we have link statement, I thought _link has some special function!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment and I will never forget that name in SAS can start with _.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 00:59:03 GMT</pubDate>
    <dc:creator>Leon_Seungmin</dc:creator>
    <dc:date>2016-10-27T00:59:03Z</dc:date>
    <item>
      <title>What is the meaning of underbar(_)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307509#M65876</link>
      <description>&lt;P&gt;I am trying to understand the following code and had a trouble finding the meaning for both _link and _temp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %lowcase(&amp;amp;id)=cusip %then %do;
  proc sql;
   create view  _link
   as select permno, ncusip,
   min(namedt) as fdate format=date9., max(nameendt) as ldate format=date9.
   from crsp.dsenames																	
   group by permno, ncusip;
     
   create table _temp
   as select distinct b.permno, a.*
   from &amp;amp;inset a left join _link b
   on a.cusip=b.ncusip and b.fdate&amp;lt;=a.&amp;amp;evtdate&amp;lt;=b.ldate
   order by b.permno, a.&amp;amp;evtdate; 
  quit;%end;
  %else %do;
  /*pre-sort the input dataset in case it is not sorted yet*/
  proc sort data=&amp;amp;inset out=_temp;
   by permno &amp;amp;evtdate;  /* error correction. CHANGE HERE */
  run;
  %end;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I looked for _link in multiple sources(language reference, step by step programming with base SAS, and google), but I could not find information about it. I would appreciate if you can share where to look for the definition and syntax of _link and _temp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 21:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307509#M65876</guid>
      <dc:creator>Leon_Seungmin</dc:creator>
      <dc:date>2016-10-26T21:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of underbar(_)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307512#M65877</link>
      <description>&lt;P&gt;Basically in this case they are the names of the resulting data view or data set. SAS names for data sets start with a letter or _ character and have a maximum lenght of 32 characters consisting of letter, digit or _ character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_link may well have been named "lookup" "Linkset" "fred". Thats just what the coder chose as the name indicates it may be used in some sort of linking operation.&lt;/P&gt;
&lt;P&gt;_temp would indicate a data set the coder considers to be temporary but different then a possibly existing set named "temp"&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 22:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307512#M65877</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-26T22:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of underbar(_)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307534#M65883</link>
      <description>&lt;P&gt;Haha, usually I get ashamed when I ask a question. But for this one, I feel especially ashamed even after getting the answer. Since we have link statement, I thought _link has some special function!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment and I will never forget that name in SAS can start with _.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 00:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307534#M65883</guid>
      <dc:creator>Leon_Seungmin</dc:creator>
      <dc:date>2016-10-27T00:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of underbar(_)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307537#M65886</link>
      <description>&lt;P&gt;That's why formatting one's code properly is so important: it boosts legibility and reduces chances of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You wouldn't have asked the question if the programmer had taken a few seconds to write:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; create view _LINK
   as select PERMNO
           , NCUSIP
           , min(NAMEDT)   as FDATE format=date9.
           , max(NAMEENDT) as LDATE format=date9.
   from CRSP.DSENAMES	
   group by PERMNO, NCUSIP&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just using vertical alignment and lower/uppercase for sas language/user names makes the code so much easier to develop and maintain.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 01:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307537#M65886</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-27T01:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of underbar(_)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307539#M65888</link>
      <description>&lt;P&gt;Thank you ChrisNZ!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is so true. I recently started learning SAS, and your advice can definitely save hours of debugging and coding for me. I will definitely keep code as you have shown me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 01:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/307539#M65888</guid>
      <dc:creator>Leon_Seungmin</dc:creator>
      <dc:date>2016-10-27T01:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of underbar(_)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/310645#M67025</link>
      <description>&lt;P&gt;Also, 'underbar' is the swedish word for&amp;nbsp;'Wonderful' &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 12:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-meaning-of-underbar/m-p/310645#M67025</guid>
      <dc:creator>_pj</dc:creator>
      <dc:date>2016-11-10T12:59:34Z</dc:date>
    </item>
  </channel>
</rss>

