<?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: Proc Export Works for xls but not for txt in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614418#M76896</link>
    <description>&lt;P&gt;excelcs is designed to work with the PC Files Server, whil dbms=tab always works locally and does not have server or port parameters, so these statements are invalid.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 16:29:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-12-30T16:29:20Z</dc:date>
    <item>
      <title>Proc Export Works for xls but not for txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614417#M76895</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a proc export setup that works just fine for all my excel exports, but when I try to convert it to export txt, a portion of it fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is my export for excel, note the port and server listing. This works as desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=SQL_TABLE&lt;BR /&gt;outfile="&amp;amp;v_Path&amp;amp;v_Fname"&lt;BR /&gt;dbms=excelcs label replace;&lt;BR /&gt;port=9621;&lt;BR /&gt;SERVER='pv2medsaspc1';&lt;BR /&gt;sheet="Sheet1";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try running it set for a text file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=SQL_TABLE&lt;BR /&gt;outfile="&amp;amp;v_Path&amp;amp;v_Fname"&lt;BR /&gt;dbms=tab REPLACE;&lt;BR /&gt;putnames=no;&lt;BR /&gt;port=9621;&lt;BR /&gt;SERVER='pv2medsaspc1';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;25 GOPTIONS ACCESSIBLE;&lt;BR /&gt;26 proc export data=SQL_TABLE&lt;BR /&gt;27 outfile="&amp;amp;v_Path&amp;amp;v_Fname"&lt;BR /&gt;28 dbms=tab REPLACE;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;29 putnames=no;&lt;BR /&gt;30 port=9621;&lt;BR /&gt;____&lt;BR /&gt;180&lt;BR /&gt;31 SERVER='pv2medsaspc1';&lt;BR /&gt;______&lt;BR /&gt;180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;32 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot remove the port and server entries, as then I just get an insufficient authorization error. I have included the log for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, any suggestions.&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614417#M76895</guid>
      <dc:creator>ACoyle</dc:creator>
      <dc:date>2019-12-30T16:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export Works for xls but not for txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614418#M76896</link>
      <description>&lt;P&gt;excelcs is designed to work with the PC Files Server, whil dbms=tab always works locally and does not have server or port parameters, so these statements are invalid.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614418#M76896</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-30T16:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export Works for xls but not for txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614420#M76897</link>
      <description>&lt;P&gt;And you need to provide a valid path for the text file, in a directory where you have write permission on the UNIX server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you use the export task of Enterprise Guide, as that handles the downloading of the exported text data on its own.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614420#M76897</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-30T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export Works for xls but not for txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614427#M76898</link>
      <description>&lt;P&gt;Unfortunately this process is designed to be scheduled using Crontab, and not able to utilize the enterprise guide services. Is there a recommendation on how to get around this limitation?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614427#M76898</guid>
      <dc:creator>ACoyle</dc:creator>
      <dc:date>2019-12-30T17:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export Works for xls but not for txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614429#M76899</link>
      <description>&lt;P&gt;Use a proper path on the server. The scheduled job will need an additional step that copies the result to the desired location in your network.&lt;/P&gt;
&lt;P&gt;Or you have a network share mounted on your UNIX server where you can write the result directly from SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614429#M76899</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-30T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export Works for xls but not for txt</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614433#M76900</link>
      <description>&lt;P&gt;Well that's a bit of a bummer for our purposes, we'll have to change our SOPs to accommodate this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick replies and helping!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 17:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-Works-for-xls-but-not-for-txt/m-p/614433#M76900</guid>
      <dc:creator>ACoyle</dc:creator>
      <dc:date>2019-12-30T17:36:22Z</dc:date>
    </item>
  </channel>
</rss>

