<?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 How to set data in a table? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479645#M286553</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set data in a table by reading a file. However, SAS is not able to recognize the file. Any suggestion is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File:&lt;/STRONG&gt; ABCD_062018 (This is monthly file with a date stamp, therefore I want to use a wild card to read the file and make it date independent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File Location:&lt;/STRONG&gt; C:\Desktop\Folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in SAS I'm creating a lib as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Libname Path&amp;nbsp;C:\Desktop\Folder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Path."ABCD_&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;ABCD_% is not a valid name (I've tried replacing % by *, moving the quotes, changing to single quotes but nothing works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to resolve this issue?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 18:54:37 GMT</pubDate>
    <dc:creator>SteelersPitts</dc:creator>
    <dc:date>2018-07-19T18:54:37Z</dc:date>
    <item>
      <title>How to set data in a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479645#M286553</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set data in a table by reading a file. However, SAS is not able to recognize the file. Any suggestion is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File:&lt;/STRONG&gt; ABCD_062018 (This is monthly file with a date stamp, therefore I want to use a wild card to read the file and make it date independent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File Location:&lt;/STRONG&gt; C:\Desktop\Folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in SAS I'm creating a lib as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Libname Path&amp;nbsp;C:\Desktop\Folder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Path."ABCD_&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;ABCD_% is not a valid name (I've tried replacing % by *, moving the quotes, changing to single quotes but nothing works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 18:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479645#M286553</guid>
      <dc:creator>SteelersPitts</dc:creator>
      <dc:date>2018-07-19T18:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set data in a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479666#M286554</link>
      <description>&lt;P&gt;Is this a sas data set or text file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's a text file, you first need to&amp;nbsp;import it into SAS and create a data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's a SAS data set you need to set the libname (correctly) and the wildcard is : for data set names, not % or with quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myFiles 'C:\desktop\folder\';

data ABCD;
set myFiles.ABCD_: ;*will read all files with ABCD prefix;

run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175426"&gt;@SteelersPitts&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to set data in a table by reading a file. However, SAS is not able to recognize the file. Any suggestion is highly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;File:&lt;/STRONG&gt; ABCD_062018 (This is monthly file with a date stamp, therefore I want to use a wild card to read the file and make it date independent)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;File Location:&lt;/STRONG&gt; C:\Desktop\Folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now in SAS I'm creating a lib as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Libname Path&amp;nbsp;C:\Desktop\Folder&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data Table;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Set Path."ABCD_&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error:&lt;/P&gt;
&lt;P&gt;ABCD_% is not a valid name (I've tried replacing % by *, moving the quotes, changing to single quotes but nothing works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any thoughts on how to resolve this issue?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 19:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479666#M286554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-19T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set data in a table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479668#M286555</link>
      <description>&lt;P&gt;You're awesome! Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 19:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-data-in-a-table/m-p/479668#M286555</guid>
      <dc:creator>SteelersPitts</dc:creator>
      <dc:date>2018-07-19T19:41:48Z</dc:date>
    </item>
  </channel>
</rss>

