<?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 What is n for? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504837#M135150</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the follow codes, what is the n used for after "April" ?&amp;nbsp; Why the test have double quotation marks?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC CONTENTS DATA=work."April"n 
OUT=AprilOut NOPRINT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 19:21:06 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2018-10-16T19:21:06Z</dc:date>
    <item>
      <title>What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504837#M135150</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the follow codes, what is the n used for after "April" ?&amp;nbsp; Why the test have double quotation marks?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC CONTENTS DATA=work."April"n 
OUT=AprilOut NOPRINT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504837#M135150</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-16T19:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504838#M135151</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the follow codes, what is the n used for after "test" ?&amp;nbsp; Why the test have double quotation marks?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC CONTENTS DATA=work."April"n 
OUT=AprilOut NOPRINT;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is no "test" in your code, and the name literal "April"n is not necessary, as April is a valid V7 SAS name.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504838#M135151</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-16T19:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504841#M135153</link>
      <description>&lt;P&gt;That looks like a SAS name literal. From the following &lt;A href="http://www2.sas.com/proceedings/sugi31/026-31.pdf" target="_self"&gt;paper&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Name literals are most useful when accessing databases (and Excel spreadsheets) that may have non-standard column names. (for example, they might contain a space or an ampersand.)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Total Monthly Sales'n would be another example of a name literal, since it contains spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Literals can use either single or double quotes. I'm not sure why they are using a&amp;nbsp;name literal for "April" since it doesn't have any special characters, but it shouldn't hurt to use it either way.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504841#M135153</guid>
      <dc:creator>ewv</dc:creator>
      <dc:date>2018-10-16T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504842#M135154</link>
      <description>&lt;P&gt;You are right, I type the wrong word.&amp;nbsp; I should have use "April" instead of "test".&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504842#M135154</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-16T19:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504844#M135155</link>
      <description>&lt;P&gt;Generally an n used that way indicates use of a name literal. If the SAS option VALIDVARNAME is set to ANY then the names of variables may contain characters that are not normally acceptable. The quotes enclose the text as one of the characters that might occur in these names is a space. The n immediately after indicates name literal as the d does for dates such as "01JAN2018"d. The quotes could be single or double.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The option VALIDMEMNAME set to EXTEND does similar for Member names: data sets, data views or item stores.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The intent is basically to allow working with the names of things in external databases that allow such extra characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I find it a chore to work with&amp;nbsp;and rename things as soon as practical to standard SAS names.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504844#M135155</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-16T19:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504846#M135157</link>
      <description>&lt;P&gt;So I come up a question.&amp;nbsp;&amp;nbsp; There are several datasets in my work folder, which including "April", "April_first", "April_middle", "April_end".&amp;nbsp; When I use proc content statement, does it mean I am looking for all the dataset containing "April", or just the file "April"?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504846#M135157</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-16T19:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504849#M135159</link>
      <description>&lt;P&gt;For PROC CONTENTS it is just the single dataset named.&lt;/P&gt;
&lt;P&gt;But you can use the special token _ALL_ and it report on all of the datasets in the library.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=mylib._all_ noprint out=contents; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could then filter the output data based on the member name if you wanted the information for some of them.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  set contents;
  where upcase(memname) like 'APRIL%';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/504849#M135159</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-16T19:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: What is n for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/505058#M135224</link>
      <description>&lt;P&gt;Thank you for all of&amp;nbsp;the thoroughly explanation, step by step.&amp;nbsp;&amp;nbsp; It's very helpful for me to understand.&amp;nbsp;&amp;nbsp; &lt;img id="womanhappy" class="emoticon emoticon-womanhappy" src="https://communities.sas.com/i/smilies/16x16_woman-happy.png" alt="Woman Happy" title="Woman Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-n-for/m-p/505058#M135224</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-17T13:11:57Z</dc:date>
    </item>
  </channel>
</rss>

