<?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 Proc export to csv problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264153#M51775</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hello everyone,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I am trying to export sas output to external csv file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I am using the following lines:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=work.abcd_&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New"&gt;today.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;outfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"D:\ABCD\abcd_&amp;amp;today..csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;dbms&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;=csv;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;The log says:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;NOTE: "D:\ABCD\abcd_20160415.csv" file was successfully created.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;But there is no file generated in the predefined path.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;What could be the problem and am I missing something?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2016 12:35:30 GMT</pubDate>
    <dc:creator>dzhu</dc:creator>
    <dc:date>2016-04-15T12:35:30Z</dc:date>
    <item>
      <title>Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264153#M51775</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hello everyone,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I am trying to export sas output to external csv file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I am using the following lines:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=work.abcd_&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New"&gt;today.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;outfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;"D:\ABCD\abcd_&amp;amp;today..csv"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;dbms&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;=csv;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;The log says:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;NOTE: "D:\ABCD\abcd_20160415.csv" file was successfully created.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;But there is no file generated in the predefined path.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;What could be the problem and am I missing something?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 12:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264153#M51775</guid>
      <dc:creator>dzhu</dc:creator>
      <dc:date>2016-04-15T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264162#M51777</link>
      <description>&lt;P&gt;What software are you running, is it SAS Universtiy Edition, Enterprise Guide etc. &amp;nbsp;Do you have write access to D:? &amp;nbsp;Does the drive mapped to &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; within SAS reflect the &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; drive you are looking at? &amp;nbsp;Are you on a mainframe? &amp;nbsp;Does the datset - which is used in the proc:&lt;/P&gt;
&lt;P&gt;work.abcd_&amp;amp;today.&lt;/P&gt;
&lt;P&gt;contain any observations? &amp;nbsp;I don't know what that macro variable resolves as.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 13:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264162#M51777</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-15T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264167#M51778</link>
      <description>&lt;P&gt;Thanks for the fast reply.&lt;/P&gt;&lt;P&gt;It is Enterprise Guide 4.3.I have a write access to D.The macro variable is returning the sysdate in yyyymmdd format.&lt;/P&gt;&lt;P&gt;The table has observations in it. I am using&amp;nbsp;corporate computer.&lt;/P&gt;&lt;P&gt;About the mapping between D:\s I am not sure and I do not know how to check it...&lt;/P&gt;&lt;P&gt;Actually when I am exporting the table with the Export wizard, as a step in the process flow, everything works perfect.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 13:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264167#M51778</guid>
      <dc:creator>dzhu</dc:creator>
      <dc:date>2016-04-15T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264172#M51780</link>
      <description>&lt;P&gt;Can you try it without the macro variables:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" color="#000080"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=work.abcd_20160415&lt;/FONT&gt;&lt;FONT face="Courier New" color="#008080"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;outfile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" color="#800080"&gt;&lt;FONT face="Courier New" color="#800080"&gt;&lt;FONT face="Courier New" color="#800080"&gt;"D:\ABCD\abcd_20160415.csv"&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;&lt;FONT face="Courier New" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;=csv;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;FONT face="Courier New" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;It shouldn't make any difference, but if its working through menu export options I don;t see why it wouldn't. &amp;nbsp;Have you tried - I think its the last option on the export wizard - to save the code generated by the export wizard - you have two buttons to the lower right, one is finish the other is next and you can save the code. &amp;nbsp;Copy that code and run it in your project.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264172#M51780</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-15T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264181#M51786</link>
      <description>&lt;P&gt;Dzhu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the SAS server a remote server or a local (on your desktop).&amp;nbsp; If remote, the &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; drive there may be different from the one that you can see with Windows Explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The export wizard operates within EGuide, but the PROCs excute within the server.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264181#M51786</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2016-04-15T14:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264189#M51791</link>
      <description>I have replaced the macro vars with their outcome and it did not work.&lt;BR /&gt;Also, I can not find anything that looks like sas code in the export wizard...the only thing is "Export job Export successful to: D:\ABCD\abcd_20160415.csv" in the log of the export.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264189#M51791</guid>
      <dc:creator>dzhu</dc:creator>
      <dc:date>2016-04-15T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264191#M51792</link>
      <description>It is a remote server.&lt;BR /&gt;How can I predefine the drive so I can use the one on my machine?</description>
      <pubDate>Fri, 15 Apr 2016 14:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264191#M51792</guid>
      <dc:creator>dzhu</dc:creator>
      <dc:date>2016-04-15T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264230#M51807</link>
      <description>&lt;P&gt;You probably can't.&amp;nbsp; Typically, corporate servers are set up to see shared network drives, but not drives on desktops or laptops.&amp;nbsp; Your IT support group may be able to configure it for you if you can make a sufficient business case to them.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 17:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/264230#M51807</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2016-04-15T17:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to csv problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/265344#M52172</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I will try to be as convincing as possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it will work.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 08:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-csv-problem/m-p/265344#M52172</guid>
      <dc:creator>dzhu</dc:creator>
      <dc:date>2016-04-21T08:03:51Z</dc:date>
    </item>
  </channel>
</rss>

