<?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 Setting up an Output Path using SAS Studio in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579908#M349</link>
    <description>&lt;P&gt;I am working through the SAS Programming 1 Essentials, on the 6th module about exporting results, and I can't figure out what the filepath is for my "outpath".&amp;nbsp; I am using SAS Studio and trying to create a line for %let outpath&lt;/P&gt;&lt;DIV class="lp_chat_line_wrapper lp_visitor "&gt;&lt;DIV class="lp_time"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lp_chat_line_wrapper lp_visitor "&gt;&lt;DIV class="lp_chat_line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lp_chat_line_wrapper lp_visitor "&gt;&lt;DIV class="lp_chat_line"&gt;&lt;DIV class="lp_chat_arrow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;I thought it might be %let outpath= "/folders/myfolders/EPG194/output"; which I ran within libname.sas.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;But I am getting an error message when I try to do the first exercise,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;Here is the code:&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;proc export data=pg1.storm_final&lt;BR /&gt;outfile="&amp;amp;outpath/storm_final.csv"&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;Here is the log:&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99 proc export data=pg1.storm_final&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100 outfile="&amp;amp;outpath/storm_final.csv"&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Line generated by the macro variable "OUTPATH".&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100 ""/folders/myfolders/EPG194/output"&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, DATA, DBLABEL, DBMS, DEBUG, FILE, LABEL, OUTFILE, OUTTABLE, REPLACE,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;TABLE, _DEBUG_.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;101 dbms=csv replace;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;102 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;103&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;104&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;105 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;117&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Thanks in advance for your help!&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 Aug 2019 15:24:20 GMT</pubDate>
    <dc:creator>CherylG</dc:creator>
    <dc:date>2019-08-08T15:24:20Z</dc:date>
    <item>
      <title>Setting up an Output Path using SAS Studio</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579908#M349</link>
      <description>&lt;P&gt;I am working through the SAS Programming 1 Essentials, on the 6th module about exporting results, and I can't figure out what the filepath is for my "outpath".&amp;nbsp; I am using SAS Studio and trying to create a line for %let outpath&lt;/P&gt;&lt;DIV class="lp_chat_line_wrapper lp_visitor "&gt;&lt;DIV class="lp_time"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lp_chat_line_wrapper lp_visitor "&gt;&lt;DIV class="lp_chat_line"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lp_chat_line_wrapper lp_visitor "&gt;&lt;DIV class="lp_chat_line"&gt;&lt;DIV class="lp_chat_arrow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;I thought it might be %let outpath= "/folders/myfolders/EPG194/output"; which I ran within libname.sas.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&lt;SPAN class="lp_title_text lp_ltr"&gt;But I am getting an error message when I try to do the first exercise,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;Here is the code:&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;proc export data=pg1.storm_final&lt;BR /&gt;outfile="&amp;amp;outpath/storm_final.csv"&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;Here is the log:&lt;/DIV&gt;&lt;DIV class="lp_line_state_wrapper"&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99 proc export data=pg1.storm_final&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100 outfile="&amp;amp;outpath/storm_final.csv"&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Line generated by the macro variable "OUTPATH".&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100 ""/folders/myfolders/EPG194/output"&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, DATA, DBLABEL, DBMS, DEBUG, FILE, LABEL, OUTFILE, OUTTABLE, REPLACE,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;TABLE, _DEBUG_.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;101 dbms=csv replace;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;102 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;103&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;104&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;105 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;117&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Thanks in advance for your help!&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579908#M349</guid>
      <dc:creator>CherylG</dc:creator>
      <dc:date>2019-08-08T15:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up an Output Path using SAS Studio</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579951#M350</link>
      <description>never mind - I solved it myself - removed the double quotes. sigh.</description>
      <pubDate>Thu, 08 Aug 2019 17:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579951#M350</guid>
      <dc:creator>CherylG</dc:creator>
      <dc:date>2019-08-08T17:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up an Output Path using SAS Studio</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579976#M351</link>
      <description>Hi:&lt;BR /&gt;  Yes, we do not recommend using quotes in the %LET statement -- that frequently breaks the code where you use the helper macro variable.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 08 Aug 2019 19:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Setting-up-an-Output-Path-using-SAS-Studio/m-p/579976#M351</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-08T19:35:59Z</dc:date>
    </item>
  </channel>
</rss>

