<?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 Lesson 6 Exporting Data in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898852#M1445</link>
    <description>&lt;P&gt;I'm stuck on the Exporting Data to an Excel Workbook on Lesson 6 SAS Programming 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the Demo, it asks the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a LIBNAME statement to create a library named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;xlout&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that points to an Excel file named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;southpacific.xlsx&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;BR /&gt;Note:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp;outpath&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to provide the path to the file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;libname xlout xlsx "&amp;amp;outpath/southpacific.xlsx";&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added xlout for this step and step 6. When I run the program, I receive the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brianhoops1_0-1697492806339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88901i1F3F79F05772A914/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brianhoops1_0-1697492806339.png" alt="brianhoops1_0-1697492806339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the previous steps, we were instructed to add the Macro variable for output, but that does not seem to be working. Any advice on how to proceed?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 21:49:00 GMT</pubDate>
    <dc:creator>brianhoops1</dc:creator>
    <dc:date>2023-10-16T21:49:00Z</dc:date>
    <item>
      <title>Lesson 6 Exporting Data</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898852#M1445</link>
      <description>&lt;P&gt;I'm stuck on the Exporting Data to an Excel Workbook on Lesson 6 SAS Programming 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the Demo, it asks the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a LIBNAME statement to create a library named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;xlout&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that points to an Excel file named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;southpacific.xlsx&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;BR /&gt;Note:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;amp;outpath&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to provide the path to the file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;libname xlout xlsx "&amp;amp;outpath/southpacific.xlsx";&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added xlout for this step and step 6. When I run the program, I receive the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brianhoops1_0-1697492806339.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88901i1F3F79F05772A914/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brianhoops1_0-1697492806339.png" alt="brianhoops1_0-1697492806339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the previous steps, we were instructed to add the Macro variable for output, but that does not seem to be working. Any advice on how to proceed?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 21:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898852#M1445</guid>
      <dc:creator>brianhoops1</dc:creator>
      <dc:date>2023-10-16T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6 Exporting Data</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898853#M1446</link>
      <description>&lt;P&gt;You are going to need more code than that to EXPORT data to an XLSX file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you have to have defined the macro variable outpath properly.&lt;/P&gt;
&lt;P&gt;Second you have to have some code that will write something into the new XLSX file (actually do the exporting).&lt;/P&gt;
&lt;P&gt;Once that is done then perhaps there will be sheet named South_Pacific in the XLSX file that the libref XLOUT is pointing to.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 21:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898853#M1446</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-10-16T21:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6 Exporting Data</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898854#M1447</link>
      <description>&lt;P&gt;Show the code where you assign a value to the macro variable outpath.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;User defined macro variables like that do not persist across sessions. So if you did that in a different SAS session you need to do it again.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 22:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-6-Exporting-Data/m-p/898854#M1447</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-16T22:22:30Z</dc:date>
    </item>
  </channel>
</rss>

