<?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 &amp;gt; csv on a UNIX platform in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434961#M68929</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution of my problem!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's just an option that was missing in my shell script, the &lt;STRONG&gt;-noterminal&lt;/STRONG&gt; option. Since I added it, proc export works again. Why proc export on a Unix platform tries to connect to the X server is another question but at least my script works now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much to Kurt for his input to make appear the error message in the logfile (-logparm write=immediate), this helped me to resolve this problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Alecs&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2018 17:21:52 GMT</pubDate>
    <dc:creator>Alecs</dc:creator>
    <dc:date>2018-02-07T17:21:52Z</dc:date>
    <item>
      <title>proc export &gt; csv on a UNIX platform</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434066#M68850</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with SAS 9.4 and I try to run via a shell a SAS script on a UNIX platform. Within the SAS script there is my most important step that is a proc export of a small dataset to csv. But my sas script stops miraculously just when the proc export should begin. Even my log file doesn't contain any errors, it just stops and that's it. All the datasets before the proc export are correctly created, the proc export and all the following datasteps are just ignored. If a replace the proc export by an ordinary datastep everything works fine again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know what's happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 06:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434066#M68850</guid>
      <dc:creator>Alecs</dc:creator>
      <dc:date>2018-02-05T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc export &gt; csv on a UNIX platform</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434097#M68853</link>
      <description>&lt;P&gt;Run the batch script with -logparm WRITE=IMMEDIATE for SAS.&lt;/P&gt;
&lt;P&gt;And please post your proc export code.&lt;/P&gt;
&lt;P&gt;Have you checked the log you get for any WARNINGs, ERRORs or extraneous NOTEs before it reaches the supposed export step? Make your code clean.&lt;/P&gt;
&lt;P&gt;What happens when you run the same code in an interactive session?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434097#M68853</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-05T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc export &gt; csv on a UNIX platform</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434768#M68915</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my proc export:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;PROC EXPORT DATA= OUTT.CASES_&amp;amp;mannoc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;OUTFILE = toto&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=DLM REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;DELIMITER=";" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUTNAMES=YES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;I can't recognize any problems, the macro variable &amp;amp;mannoc. is correctly assigned but it still doesn't work. Is there a problem with this kind of proc export on a Unix platform?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Thanks for information if you see anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;Greetings&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv7459370760MsoNormal"&gt;&lt;SPAN style="font-size: 9.0pt;"&gt;A.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 06:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434768#M68915</guid>
      <dc:creator>Alecs</dc:creator>
      <dc:date>2018-02-07T06:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc export &gt; csv on a UNIX platform</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434772#M68916</link>
      <description>&lt;P&gt;How does your filename statement for toto look?&lt;/P&gt;
&lt;P&gt;Have you checked the log, as I suggested? And please supply the values of the macro variables used. If necessary, insert %put statements immediately before their use.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 06:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434772#M68916</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-07T06:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc export &gt; csv on a UNIX platform</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434904#M68923</link>
      <description>&lt;P&gt;Hello Kurt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following line in an emulator (putty): sas -logparm write=immediate bgsa_sedex_test.sas &amp;amp;. The result is that I have indeed&lt;/P&gt;&lt;P&gt;now a log file which gives&amp;nbsp;me at the last place - juste after the proc export - the following ERROR message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="2"&gt;ERROR: The connection to the X display server could not be made. Verify that the X display name is correct, and that you have&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino" size="2"&gt;access authorization. See the online Help for more information about connecting to an X display server.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a hint, I try to understand this message by googling, but what is missing then in my proc export procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will find here the whole proc export with the filename declaration :&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; toto &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'/data/dwh1/dwh/data/misc/seco/outest/finalds_alk0457.csv'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;export&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=outt.cases_&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;mannoc.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;outfile&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=toto&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dlm &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;delimiter=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;";"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;putnames=yes;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alecs&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 15:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434904#M68923</guid>
      <dc:creator>Alecs</dc:creator>
      <dc:date>2018-02-07T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc export &gt; csv on a UNIX platform</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434961#M68929</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution of my problem!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's just an option that was missing in my shell script, the &lt;STRONG&gt;-noterminal&lt;/STRONG&gt; option. Since I added it, proc export works again. Why proc export on a Unix platform tries to connect to the X server is another question but at least my script works now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much to Kurt for his input to make appear the error message in the logfile (-logparm write=immediate), this helped me to resolve this problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Alecs&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 17:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-gt-csv-on-a-UNIX-platform/m-p/434961#M68929</guid>
      <dc:creator>Alecs</dc:creator>
      <dc:date>2018-02-07T17:21:52Z</dc:date>
    </item>
  </channel>
</rss>

