<?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 SAS stored process data dump download issue in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-stored-process-data-dump-download-issue/m-p/815799#M25824</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have developed stored procedure to download data dump in text file with below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=data_download outfile="path" file =_webout&lt;/P&gt;&lt;P&gt;dbms=tab replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In output last 11 column names are getting excluded. Means row 1st is blank for these 11 columns and data is flowing for these columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching sample for reference. Please help if there is any solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Akash&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 10:09:16 GMT</pubDate>
    <dc:creator>Akash93</dc:creator>
    <dc:date>2022-05-31T10:09:16Z</dc:date>
    <item>
      <title>SAS stored process data dump download issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-stored-process-data-dump-download-issue/m-p/815799#M25824</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have developed stored procedure to download data dump in text file with below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=data_download outfile="path" file =_webout&lt;/P&gt;&lt;P&gt;dbms=tab replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In output last 11 column names are getting excluded. Means row 1st is blank for these 11 columns and data is flowing for these columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching sample for reference. Please help if there is any solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Akash&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-stored-process-data-dump-download-issue/m-p/815799#M25824</guid>
      <dc:creator>Akash93</dc:creator>
      <dc:date>2022-05-31T10:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS stored process data dump download issue</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-stored-process-data-dump-download-issue/m-p/815803#M25825</link>
      <description>&lt;P&gt;Why did you attach an XLSX file to your question when the SAS code in the question was generating a TEXT file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC EXPORT might have trouble with header lines that are too long.&amp;nbsp; I know PROC IMPORT does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fortunately writing a simple text file does not need a PROC.&amp;nbsp; The DATA step can do it by itself.&amp;nbsp; But adding the header line is adds a little complication.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Write header row ;
proc transpose data=data_download(obs=0) out=names;
  var _all_;
run;
data _null_;
  file _webout dsd dlm='09'x lrecl=1000000;
  set names;
  put _name_ @;
run;

* Append data rows;
data _null_;
  file _webout dsd dlm='09'x lrecl=1000000 mod;
  set data_download;
  put (_all_) (+0);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have trouble writing it directly to the _WEBOUT fileref then create a physical file first and copy it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 10:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-stored-process-data-dump-download-issue/m-p/815803#M25825</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-31T10:30:36Z</dc:date>
    </item>
  </channel>
</rss>

