<?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: get proc export code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/get-proc-export-code/m-p/87236#M18629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maggi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I'm answering your questions in reverse time order.&lt;/P&gt;&lt;P&gt;Please see my previous response to your subsequent question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you still really need to understand the process, the SAS Institute supplies an autocall macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/"&gt;%DS2CSV&lt;/A&gt;(data=yourlibrary.yourSASdataset, runmode=b, csvfile=yourpath/yourfile.csv);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can follow SAS Macro code, have a look at the the source code for that macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ds2csv.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it should be in one of your sas autocall locations for your UNIX SAS installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my installation it is in the SAS install files in the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/core/sasmacro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Dec 2012 01:17:41 GMT</pubDate>
    <dc:creator>Damien_Mather</dc:creator>
    <dc:date>2012-12-01T01:17:41Z</dc:date>
    <item>
      <title>get proc export code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-proc-export-code/m-p/87235#M18628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to see the code generated by proc export while exporting my xls file. How can i get it?I dont see it in my log. The code is like:&lt;/P&gt;&lt;P&gt;But what if I am using it an excel file instead of csv. What should be the delimiter value in that case?(This code is copied from somewhere else)&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt; data _null_;&lt;BR /&gt;9357 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;9358 %let _EFIREC_ = 0; /* clear export record count macro variable */&lt;BR /&gt;9359 file 'c:\test.csv' delimiter=',' DSD DROPOVER lrecl=32767;&lt;BR /&gt;9360 if _n_ = 1 then /* write column names or labels */&lt;BR /&gt;9361 do;&lt;BR /&gt;9362 put&lt;BR /&gt;9363 "x"&lt;BR /&gt;9364 ','&lt;BR /&gt;9365 "y"&lt;BR /&gt;9366 ','&lt;BR /&gt;9367 "z"&lt;BR /&gt;9368 ;&lt;BR /&gt;9369 end;&lt;BR /&gt;9370 set DS1(keep=x y) end=EFIEOD;&lt;BR /&gt;9371 format x best12. ;&lt;BR /&gt;9372 format y best12. ;&lt;BR /&gt;9373 format z best12. ;&lt;BR /&gt;9374 do;&lt;BR /&gt;9375 EFIOUT + 1;&lt;BR /&gt;9376 put x @;&lt;BR /&gt;9377 put y @;&lt;BR /&gt;9378 put z ;&lt;BR /&gt;9379 ;&lt;BR /&gt;9380 end;&lt;BR /&gt;9381 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;9382 if EFIEOD then call symputx('_EFIREC_',EFIOUT);&lt;BR /&gt;9383 run;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 23:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-proc-export-code/m-p/87235#M18628</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-11-30T23:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: get proc export code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-proc-export-code/m-p/87236#M18629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maggi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I'm answering your questions in reverse time order.&lt;/P&gt;&lt;P&gt;Please see my previous response to your subsequent question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you still really need to understand the process, the SAS Institute supplies an autocall macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/"&gt;%DS2CSV&lt;/A&gt;(data=yourlibrary.yourSASdataset, runmode=b, csvfile=yourpath/yourfile.csv);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can follow SAS Macro code, have a look at the the source code for that macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ds2csv.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it should be in one of your sas autocall locations for your UNIX SAS installation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my installation it is in the SAS install files in the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/core/sasmacro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2012 01:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-proc-export-code/m-p/87236#M18629</guid>
      <dc:creator>Damien_Mather</dc:creator>
      <dc:date>2012-12-01T01:17:41Z</dc:date>
    </item>
  </channel>
</rss>

