<?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: Another Question for n? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505182#M135265</link>
    <description>&lt;P&gt;For any of the&amp;nbsp;SAS names that&amp;nbsp;are not valid have to be in this way(&lt;SPAN&gt;string within quotation marks, followed by the upper- or lowercase letter&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;n)&lt;/SPAN&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, 17 Oct 2018 15:55:43 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-10-17T15:55:43Z</dc:date>
    <item>
      <title>Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505165#M135255</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following codes.&amp;nbsp;&amp;nbsp; I found out the proc content didn't work when I remove the n behind the "18RSV".&amp;nbsp;&amp;nbsp; Could someone let me know why?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME RSV OLEDB 
		provider="sqloledb" 
		properties=("Data Source"="SQL\2018"
					"Persist Security Info"="True" 
					"User ID"="test" 
					"Password"="&amp;amp;pin" 
					"Initial Catalog"="RSV")
		schema=dbo;

PROC CONTENTS DATA=RSV."18RSV"n OUT=RSV18 NOPRINT;RUN;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505165#M135255</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-17T15:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505168#M135257</link>
      <description>&lt;P&gt;The section&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR valign="bottom"&gt;
&lt;TD&gt;&lt;HR /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD class="title2"&gt;&lt;A name="a000998930" target="_blank"&gt;&lt;/A&gt;SAS Name Literals&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&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;H3&gt;&lt;A name="a000998931" target="_blank"&gt;&lt;/A&gt;Definition of SAS Name Literals in the following link may help&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000998953.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000998953.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505168#M135257</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-17T15:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505169#M135258</link>
      <description>Because otherwise SAS reads that as a string not as a data set name. The letters after denote different things. An n means a name literal, a d means a date, dt means datetime, and t means time. The data set is not a valid name because it starts with a number.</description>
      <pubDate>Wed, 17 Oct 2018 15:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505169#M135258</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-17T15:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505170#M135259</link>
      <description>&lt;P&gt;The n means the string is a named literal.&amp;nbsp; It is used for strings which are not SAS compatible, often used with sources like Excel which have no rules.&amp;nbsp; In your given example dataset names cannot start with a number, so you need to use named literal.&amp;nbsp; This:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;OUT&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;18&lt;/SPAN&gt;RSV&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Will not work, should give you an error as name cannot star with number.&amp;nbsp; Also avoid coding all in uppercase, its really hard to read.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505170#M135259</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-17T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505177#M135263</link>
      <description>&lt;P&gt;The code wasn't created by me, but someone else.&amp;nbsp; I am trying to figure out why he wrote this.&amp;nbsp;&amp;nbsp; So from your feedback, the n is used because the dataset "18RSV" starting with number?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505177#M135263</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-17T15:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505180#M135264</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data source wants, he could prefix the name with an underscore, which might preserve the naming properties he/she wants while allowing you to dispense with the N and the quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505180#M135264</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-10-17T15:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505182#M135265</link>
      <description>&lt;P&gt;For any of the&amp;nbsp;SAS names that&amp;nbsp;are not valid have to be in this way(&lt;SPAN&gt;string within quotation marks, followed by the upper- or lowercase letter&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;n)&lt;/SPAN&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, 17 Oct 2018 15:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505182#M135265</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-17T15:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Another Question for n?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505183#M135266</link>
      <description>&lt;P&gt;Thank you so much for all of your input. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Another-Question-for-n/m-p/505183#M135266</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-17T15:56:03Z</dc:date>
    </item>
  </channel>
</rss>

