<?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 Attempting to complete lesson 6 of SAS Essentials Training in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842789#M1239</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to export data to an excel workbook. However, I am getting an error message in the log that the XLSX file cannot be created. Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xlout xlsx "&amp;amp;outpath/southpacific.xlsx";&lt;/P&gt;&lt;P&gt;data xlout.South_Pacific;&lt;BR /&gt;set pg1.storm_final;&lt;BR /&gt;where Basin="SP";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=pg1.storm_final noprint maxdec=1;&lt;BR /&gt;where Basin="SP";&lt;BR /&gt;var MaxWindKM;&lt;BR /&gt;class Season;&lt;BR /&gt;ways 1;&lt;BR /&gt;output out=xlout.Season_Stats n=Count mean=AvgMaxWindKM max=StrongestWindKM;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname xlout clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable _SASWSTEMP_ resolves to /home/u61133731/.sasstudio/.images/8217b036-825d-4a64-8290-d1a79e89e8fa&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;&lt;/DIV&gt;&lt;DIV class=""&gt;68&lt;/DIV&gt;&lt;DIV class=""&gt;69 libname xlout&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable OUTPATH resolves to /folders/myfolders/EPG194/output OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK&lt;/DIV&gt;&lt;DIV class=""&gt;69 ! xlsx "&amp;amp;outpath/southpacific.xlsx";&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref XLOUT was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class=""&gt;Engine: XLSX&lt;/DIV&gt;&lt;DIV class=""&gt;Physical Name: /folders/myfolders/EPG194/output OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK/southpacific.xlsx&lt;/DIV&gt;&lt;DIV class=""&gt;70&lt;/DIV&gt;&lt;DIV class=""&gt;71 data xlout.South_Pacific;&lt;/DIV&gt;&lt;DIV class=""&gt;72 set pg1.storm_final;&lt;/DIV&gt;&lt;DIV class=""&gt;73 where Basin="SP";&lt;/DIV&gt;&lt;DIV class=""&gt;74 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Temporary file for XLSX file can not be created -&amp;gt; /folders/myfolders/EPG194/output OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK//southpacific.$$1. Make sure the path name is correct and that you have write permission.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: File XLOUT.South_Pacific.DATA does not exist.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The data set XLOUT.South_Pacific was only partially opened and will not be saved.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;memory 2486.87k&lt;/DIV&gt;&lt;DIV class=""&gt;OS Memory 28764.00k&lt;/DIV&gt;&lt;DIV class=""&gt;Timestamp 11/06/2022 09:41:46 PM&lt;/DIV&gt;&lt;DIV class=""&gt;Step Count 310 Switch Count 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Reclaims 475&lt;/DIV&gt;&lt;DIV class=""&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class=""&gt;Voluntary Context Switches 6&lt;/DIV&gt;&lt;DIV class=""&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;75&lt;/DIV&gt;&lt;DIV class=""&gt;76 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;&lt;/DIV&gt;&lt;DIV class=""&gt;86&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have created the outpath macro using:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%let outpath=/folders/myfolders/EPG194/output&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!!&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Nov 2022 21:52:53 GMT</pubDate>
    <dc:creator>sb18</dc:creator>
    <dc:date>2022-11-06T21:52:53Z</dc:date>
    <item>
      <title>Attempting to complete lesson 6 of SAS Essentials Training</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842789#M1239</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to export data to an excel workbook. However, I am getting an error message in the log that the XLSX file cannot be created. Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xlout xlsx "&amp;amp;outpath/southpacific.xlsx";&lt;/P&gt;&lt;P&gt;data xlout.South_Pacific;&lt;BR /&gt;set pg1.storm_final;&lt;BR /&gt;where Basin="SP";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc means data=pg1.storm_final noprint maxdec=1;&lt;BR /&gt;where Basin="SP";&lt;BR /&gt;var MaxWindKM;&lt;BR /&gt;class Season;&lt;BR /&gt;ways 1;&lt;BR /&gt;output out=xlout.Season_Stats n=Count mean=AvgMaxWindKM max=StrongestWindKM;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname xlout clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable _SASWSTEMP_ resolves to /home/u61133731/.sasstudio/.images/8217b036-825d-4a64-8290-d1a79e89e8fa&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;&lt;/DIV&gt;&lt;DIV class=""&gt;68&lt;/DIV&gt;&lt;DIV class=""&gt;69 libname xlout&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable OUTPATH resolves to /folders/myfolders/EPG194/output OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK&lt;/DIV&gt;&lt;DIV class=""&gt;69 ! xlsx "&amp;amp;outpath/southpacific.xlsx";&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: Libref XLOUT was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class=""&gt;Engine: XLSX&lt;/DIV&gt;&lt;DIV class=""&gt;Physical Name: /folders/myfolders/EPG194/output OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK/southpacific.xlsx&lt;/DIV&gt;&lt;DIV class=""&gt;70&lt;/DIV&gt;&lt;DIV class=""&gt;71 data xlout.South_Pacific;&lt;/DIV&gt;&lt;DIV class=""&gt;72 set pg1.storm_final;&lt;/DIV&gt;&lt;DIV class=""&gt;73 where Basin="SP";&lt;/DIV&gt;&lt;DIV class=""&gt;74 run;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Temporary file for XLSX file can not be created -&amp;gt; /folders/myfolders/EPG194/output OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK//southpacific.$$1. Make sure the path name is correct and that you have write permission.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: File XLOUT.South_Pacific.DATA does not exist.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class=""&gt;WARNING: The data set XLOUT.South_Pacific was only partially opened and will not be saved.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;memory 2486.87k&lt;/DIV&gt;&lt;DIV class=""&gt;OS Memory 28764.00k&lt;/DIV&gt;&lt;DIV class=""&gt;Timestamp 11/06/2022 09:41:46 PM&lt;/DIV&gt;&lt;DIV class=""&gt;Step Count 310 Switch Count 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class=""&gt;Page Reclaims 475&lt;/DIV&gt;&lt;DIV class=""&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class=""&gt;Voluntary Context Switches 6&lt;/DIV&gt;&lt;DIV class=""&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;75&lt;/DIV&gt;&lt;DIV class=""&gt;76 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;SYMBOLGEN: Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;&lt;/DIV&gt;&lt;DIV class=""&gt;86&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have created the outpath macro using:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%let outpath=/folders/myfolders/EPG194/output&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!!&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 21:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842789#M1239</guid>
      <dc:creator>sb18</dc:creator>
      <dc:date>2022-11-06T21:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to complete lesson 6 of SAS Essentials Training</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842790#M1240</link>
      <description>&lt;P&gt;Your %LET statement misses a terminating semicolon.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 21:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842790#M1240</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-06T21:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to complete lesson 6 of SAS Essentials Training</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842792#M1241</link>
      <description>&lt;P&gt;Thanks! I fixed that but the code still isn't running correctly. The log still takes that the temporary file for XLSX file can not be created.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 21:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842792#M1241</guid>
      <dc:creator>sb18</dc:creator>
      <dc:date>2022-11-06T21:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to complete lesson 6 of SAS Essentials Training</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842825#M1242</link>
      <description>&lt;P&gt;Please post the log again. Run the %LET, the LIBNAME and the DATA step all at once.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 06:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842825#M1242</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-07T06:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to complete lesson 6 of SAS Essentials Training</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842845#M1243</link>
      <description>&lt;P&gt;I see this in the log&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"/home/u61133731/", which tells me you are using SAS Ondemand for Academics:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your macro variable, outpath should be something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let outpath =&amp;nbsp;&amp;nbsp;/home/u61133731;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if you want to create your excel directly in the Files(home) directory,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or if you have folders under Files(home) like EPG1V2/output it would look like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let outpath =&amp;nbsp;&amp;nbsp;/home/u61133731/EPG1V2/output;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let&amp;nbsp;outpath =&amp;nbsp;&amp;nbsp;~/EPG1V2/output;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(hint - you can use ~ to point to your user home directory)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 12:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Attempting-to-complete-lesson-6-of-SAS-Essentials-Training/m-p/842845#M1243</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2022-11-07T12:05:30Z</dc:date>
    </item>
  </channel>
</rss>

