<?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: Exporting SAS dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658100#M197229</link>
    <description>&lt;P&gt;My sincere apologies. I did not see the portion of the message requesting for the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the log for the codes and the unedited codes below.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2769  LIBNAME myperm "C:\temp\Merged\";
                                     --
                                     49
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.
              Inserting white space between a quoted string and the succeeding identifier is
             recommended.

2778  LIBNAME myperm "C:\temp\Merged\";
2779  data myperm.Merged_data4;
2780  set sashelp.Merged_data4;
2781  run;
2782  Libname Merged 'C:\Users\Uokoro.HEALTHCARE\Desktop\Delirium\';
2783   proc datasets library=work;
2784  copy in=work out=Merged;
2785  select Merged_data4;
2786  run;quit;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myperm "C:\temp\Merged\";
data myperm.Merged_data4;
set sashelp.Merged_data4;
run;

Libname Merged 'C:\Users\Uokoro.HEALTHCARE\Desktop\Delirium\';
 proc datasets library=work;
copy in=work out=Merged;
select Merged_data4;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 15:19:29 GMT</pubDate>
    <dc:creator>UcheOkoro</dc:creator>
    <dc:date>2020-06-12T15:19:29Z</dc:date>
    <item>
      <title>Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657915#M197167</link>
      <description>&lt;P&gt;Please, I need help exporting or saving a SAS dataset to a folder on my desktop.&lt;/P&gt;&lt;P&gt;I have tried the following codes but they did not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME myperm "C:\temp\Merged\";&lt;BR /&gt;data myperm.Merged_data4;&lt;BR /&gt;set sashelp.Merged_data4;&lt;BR /&gt;run;&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;Libname Merged 'C:\Users\Jking.HEALTHCARE\Desktop\Apple\';&lt;BR /&gt;proc datasets library=work;&lt;BR /&gt;copy in=work out=Merged;&lt;BR /&gt;select Merged_data;&lt;BR /&gt;run;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 06:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657915#M197167</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-06-12T06:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657929#M197170</link>
      <description>&lt;P&gt;1.These 2 pieces of code do not even point to the same table.&lt;/P&gt;
&lt;P&gt;2. "did not work" is too vague. Show us the whole log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 06:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657929#M197170</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-12T06:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657933#M197174</link>
      <description>&lt;P&gt;The above codes could not save the dataset to my desktop. I need a code that works and some explanation for it to help me understand how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 06:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657933#M197174</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-06-12T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657948#M197181</link>
      <description>&lt;P&gt;Feel free not to take my comments into consideration.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 07:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/657948#M197181</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-12T07:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658001#M197187</link>
      <description>&lt;P&gt;When a senior user/helper here asks you to do something, you better do it; help us to help you. Otherwise it will be considered that you are not really interested in getting help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So please post your&amp;nbsp;&lt;EM&gt;complete&lt;/EM&gt; log of the code that did not work as expected. Use the &amp;lt;/&amp;gt; button to post the log. DO NOT post log or code text into the main posting window, as this will destroy the formatting and replace certain elements with emoticons and the like. Use the "little running man" (next to &amp;lt;/&amp;gt;) for posting code.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 09:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658001#M197187</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-12T09:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658100#M197229</link>
      <description>&lt;P&gt;My sincere apologies. I did not see the portion of the message requesting for the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the log for the codes and the unedited codes below.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2769  LIBNAME myperm "C:\temp\Merged\";
                                     --
                                     49
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.
              Inserting white space between a quoted string and the succeeding identifier is
             recommended.

2778  LIBNAME myperm "C:\temp\Merged\";
2779  data myperm.Merged_data4;
2780  set sashelp.Merged_data4;
2781  run;
2782  Libname Merged 'C:\Users\Uokoro.HEALTHCARE\Desktop\Delirium\';
2783   proc datasets library=work;
2784  copy in=work out=Merged;
2785  select Merged_data4;
2786  run;quit;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myperm "C:\temp\Merged\";
data myperm.Merged_data4;
set sashelp.Merged_data4;
run;

Libname Merged 'C:\Users\Uokoro.HEALTHCARE\Desktop\Delirium\';
 proc datasets library=work;
copy in=work out=Merged;
select Merged_data4;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658100#M197229</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-06-12T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658111#M197239</link>
      <description>&lt;P&gt;Could it be that this code is part of a macro definition?&lt;/P&gt;
&lt;P&gt;You could also have unbalanced quotes further up in the code (after all, there were &amp;gt;2700 lines before the part you posted).&lt;/P&gt;
&lt;P&gt;Start a new SAS session and run this code only:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myperm "C:\temp\Merged\";
data myperm.Merged_data4;
set sashelp.Merged_data4;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW: SASHELP is a read-only library supplied by SAS, with important views and common example datasets. I sincerely doubt that you could create a dataset like MERGED_DATA4 there.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658111#M197239</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-12T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658125#M197246</link>
      <description>&lt;P&gt;The code is not part of a macro definition. The Merged_data4 is a data set resulting from the merging of 3 other data sets and creation of additional variables from existing ones. That is why I have 2700 lines posted.I also ran some parts of the codes repeatedly. As a result of the above reasons, I cannot&amp;nbsp; run the code alone. The "sashelp" was not part of my code prior to this point. I saw it online and thought it could help me save the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 17:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658125#M197246</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-06-12T17:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658126#M197247</link>
      <description>&lt;P&gt;I asked about the macro definition because of this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2778  LIBNAME myperm "C:\temp\Merged\";
2779  data myperm.Merged_data4;
2780  set sashelp.Merged_data4;
2781  run;
2782  Libname Merged 'C:\Users\Uokoro.HEALTHCARE\Desktop\Delirium\';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Without something that keeps SAS from recognizing all these statements, there would be additional messages between lines 2778/2779 and 2781/2782, documenting the success (or failure) of the LIBNAME statement and the DATA step.&lt;/P&gt;
&lt;P&gt;Since these messages are all missing, this is either part of a macro definition, or you have unbalanced quotes further up in the code that let all this code look like a string literal.&lt;/P&gt;
&lt;P&gt;Run your code step-by-step, and check the log after each step.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 17:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658126#M197247</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-12T17:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658127#M197248</link>
      <description>&lt;P&gt;I tried this and it worked.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myperm "C:\temp\Merged\";
data myperm.Merged_data4;
set Merged_data4;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Based&amp;nbsp; on your statement, I took out the "sashelp" and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 17:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-SAS-dataset/m-p/658127#M197248</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2020-06-12T17:26:54Z</dc:date>
    </item>
  </channel>
</rss>

