<?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: Saving the data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826456#M35276</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/391779"&gt;@Sandeep77&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I am trying to save a sas data set in a location. TU_acc_added_1 is the name of the data set. I am not sure if I am giving the correct command in the set statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Store "\\local2.local\shares\Public\Trace\2022_07_11";

data store.TU_acc_added_1;
set store.TU_acc_added_1;
run;
error:
28         
29         data store.TU_acc_added_1;
30         set store.TU_acc_added_1;
ERROR: File STORE.TU_ACC_ADDED_1.DATA does not exist.
31         run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you please suggest what mistake I am doing in my code. Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The name on the DATA statement is the dataset that will be created.&lt;/P&gt;
&lt;P&gt;The name on the SET statement is the dataset that is being read.&lt;/P&gt;
&lt;P&gt;You used the same name on both and then didn't actually include any code that would change anything, so there was no need to even run the code as written.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you want to create STORE.TU_acc_added_1 what is the SOURCE of the data you want to write there?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it some other existing SAS dataset?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data store.TU_acc_added_1;
   set mylib.mydataset;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it some other type of data?&amp;nbsp; For example a text file?&amp;nbsp; If so then perhaps you want use an INFILE and INPUT statement to convert the text file into a dataset?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data store.TU_acc_added_1;
   input "mytextfile.txt" dsd dlm=';' ;
   input var1 var2 var3 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 01 Aug 2022 15:09:04 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-01T15:09:04Z</dc:date>
    <item>
      <title>Saving the data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826447#M35275</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I am trying to save a sas data set in a location. TU_acc_added_1 is the name of the data set. I am not sure if I am giving the correct command in the set statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Store "\\local2.local\shares\Public\Trace\2022_07_11";

data store.TU_acc_added_1;
set store.TU_acc_added_1;
run;
error:
28         
29         data store.TU_acc_added_1;
30         set store.TU_acc_added_1;
ERROR: File STORE.TU_ACC_ADDED_1.DATA does not exist.
31         run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you please suggest what mistake I am doing in my code. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 14:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826447#M35275</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-08-01T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826456#M35276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/391779"&gt;@Sandeep77&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I am trying to save a sas data set in a location. TU_acc_added_1 is the name of the data set. I am not sure if I am giving the correct command in the set statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Store "\\local2.local\shares\Public\Trace\2022_07_11";

data store.TU_acc_added_1;
set store.TU_acc_added_1;
run;
error:
28         
29         data store.TU_acc_added_1;
30         set store.TU_acc_added_1;
ERROR: File STORE.TU_ACC_ADDED_1.DATA does not exist.
31         run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you please suggest what mistake I am doing in my code. Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The name on the DATA statement is the dataset that will be created.&lt;/P&gt;
&lt;P&gt;The name on the SET statement is the dataset that is being read.&lt;/P&gt;
&lt;P&gt;You used the same name on both and then didn't actually include any code that would change anything, so there was no need to even run the code as written.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you want to create STORE.TU_acc_added_1 what is the SOURCE of the data you want to write there?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it some other existing SAS dataset?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data store.TU_acc_added_1;
   set mylib.mydataset;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is it some other type of data?&amp;nbsp; For example a text file?&amp;nbsp; If so then perhaps you want use an INFILE and INPUT statement to convert the text file into a dataset?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data store.TU_acc_added_1;
   input "mytextfile.txt" dsd dlm=';' ;
   input var1 var2 var3 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826456#M35276</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-01T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826599#M35287</link>
      <description>&lt;P&gt;You meant&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data store.TU_acc_added_1;
   infile "mytextfile.txt" dsd dlm=';' ;
   input var1 var2 var3 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 11:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Saving-the-data-set/m-p/826599#M35287</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-08-02T11:36:27Z</dc:date>
    </item>
  </channel>
</rss>

