<?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: Dumping Text file to ODS output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485494#M21417</link>
    <description>&lt;P&gt;For the rules, you can set style options (and I am going to switch to proc report here as don't know how much proc print implements:&lt;/P&gt;
&lt;PRE&gt;proc report data=code nowd 
  style(column)={bordertopcolor=white borderbottomcolor=white...};
  column codeline;
  define codeline / style(column)={asis=on};
run;&lt;/PRE&gt;
&lt;P&gt;The asis=on will preserve preceeding spaces.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 14:23:06 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-08-09T14:23:06Z</dc:date>
    <item>
      <title>Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485481#M21414</link>
      <description>&lt;P&gt;I created a simple utility to generate a data step for sharing a dataset.&amp;nbsp; Currently it will generate the SAS code into a file and dump it to the SAS log.&amp;nbsp; Someone suggested for SAS/Studio and EG users it would be better to show it in the Results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know enough about ODS styles to make it work well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run this step to get a program to recreate SASHELP.CLASS.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename ds2post url 'http://raw.githubusercontent.com/sasutils/macros/master/ds2post.sas';
%include ds2post ;
%ds2post(sashelp.class);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So I then tried just generating a PROC ODSTEXT step from the file. And it sort of worked, but there were two problems. One the font is proportional and I would rather see code using a fixed font.&amp;nbsp; The other is that leading spaces were removed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Title 'Code to recreate SASHELP.CLASS' ;
filename _ods_ temp;
data _null_;
  infile _code_ truncover;
  input line $char100. ;
  file _ods_ ;
  put 'P ' line :$quote. ';' ;
run;

proc odstext;
%include _ods_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 271px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22345i3A5F345F00AE7646/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I then tried adding style=DataFixed option and it seemed to help a little.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename _ods_ temp;
data _null_;
  infile _code_ truncover;
  input line $char100. ;
  file _ods_ ;
  put 'P ' line :$quote. '/ style=DataFixed ;' ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 294px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22346i63F1405A27A3D256/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But now it has added lines under the lines of text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ODS style experts who can fix this?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485481#M21414</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-09T14:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485483#M21415</link>
      <description>&lt;P&gt;Why not create a dataset with one long character string to hold each row of the output, then proc print that dataset to the results with style=minimal and nobs?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485483#M21415</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-09T14:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485489#M21416</link>
      <description>&lt;P&gt;That might be easier than using PROC ODSTEXT, but still needs more style options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is still eating the leading spaces and adding rules (borders?).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data code ;
  infile _code_ truncover ;
  input CodeLine $char100.;
  format codeline $char100.;
run;

proc print data=code noobs style=minimal;
  var CodeLine ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 194px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22347i810A3D1734584877/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485489#M21416</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-09T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485494#M21417</link>
      <description>&lt;P&gt;For the rules, you can set style options (and I am going to switch to proc report here as don't know how much proc print implements:&lt;/P&gt;
&lt;PRE&gt;proc report data=code nowd 
  style(column)={bordertopcolor=white borderbottomcolor=white...};
  column codeline;
  define codeline / style(column)={asis=on};
run;&lt;/PRE&gt;
&lt;P&gt;The asis=on will preserve preceeding spaces.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485494#M21417</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-09T14:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485514#M21418</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sorry, Tom, the little wheel spun for 5 minutes and nothing happened. Don't know what's in your macro, but ,eventually, I had to kill the session.&amp;nbsp; I'd try something like this (again, using PROC REPORT) and just use ODS HTML -- then they could copy and paste out of their browser window:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="for_tom.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22350iC2DFBD368EB15781/image-size/large?v=v2&amp;amp;px=999" role="button" title="for_tom.png" alt="for_tom.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My .02,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 15:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485514#M21418</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-09T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485573#M21420</link>
      <description>&lt;P&gt;To goal of writing to Results window is to avoid making it hard for user to find it.&lt;/P&gt;
&lt;P&gt;Would that HTML file appear in the Results window in SAS/Studio or EG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. That formatting does look better.&amp;nbsp; It is still showing the rulers in the default SAS/Studio results window.&amp;nbsp; But you can copy and paste the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=code nowd 
  style(report)={rules=none frame=void cellpadding=2px }
  style(column)={asis=on font_face="Courier New" fontsize=10pt}
  ;
  column codeline;
  define codeline / ' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 365px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22364i22079BB38D3B3608/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 19:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485573#M21420</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-09T19:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485588#M21421</link>
      <description>&lt;P&gt;Hi: I don't know what your default style is for your Studio. There are some styles where you can't get rid of the lines. Did you change to preferences--&amp;gt; Results --&amp;gt; HTML --&amp;gt;Journal before you ran your code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interestingly enough, in my test, with trying that (changing the default HTML to Journal, I got fewer lines -- just the top and bottom line:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tom2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22373i41B1737892B7A65F/image-size/large?v=v2&amp;amp;px=999" role="button" title="tom2.png" alt="tom2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I got the best results using the tried and true ODS "sandwich" technique. On the other hand, when I did a Ctrl+A and a Ctrl+V from the Results Window, I did NOT get the top and bottom lines. For SAS Studio, a simpler way to code the Journal style might be to try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
 ods html style=journal;
proc report data=text noheader nocenter
  style(report)={rules=none frame=void cellpadding=2px}
  style(column)={font_face="Courier New" fontsize=10pt};
  column ord tline;
  define ord / order noprint;
  define tline / f=$char150.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but you have to be careful NOT to put any FILE= on the ODS HTML line. This will cause the output to go the Results window and the overrides in the code will impact the JOURNAL style on the ODS HTML statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 20:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485588#M21421</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-09T20:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485631#M21422</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I ended up using those style settings with PROC ODSTEXT.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename _ods_ temp;
data _null_;
  infile _code_ truncover;
  input line $char100. ;
  file _ods_ ;
  put 'P ' line :$quote. '/ style={asis=on font_face="Courier New" fontsize=10pt} ;' ;
run;

proc odstext;
%include _ods_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 394px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22376i910C7A6CF1F80492/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 23:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485631#M21422</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-09T23:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485764#M21429</link>
      <description>Tom: &lt;BR /&gt;Nice. Just curious -- do you pick up labels and formats if the dataset has those too?&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 10 Aug 2018 13:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485764#M21429</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-10T13:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dumping Text file to ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485781#M21431</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Tom: &lt;BR /&gt;Nice. Just curious -- do you pick up labels and formats if the dataset has those too?&lt;BR /&gt;cynthia&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It should work for member label, variable labels and formats and informats.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the macro has a FORMATS option to let you override the formats used when dumping the data for situations where the FORMAT and INFORMAT applied to a variable are incompatible with each other.&amp;nbsp; For anything more complex I would suggest modifying the dataset and exporting the modified dataset using the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that after all of your formatting help on this question I ended up not modifying the macro at all.&amp;nbsp; Users can just call it with FILE=PRINT and it works fine to dump the code to the result window, even when the text only listing destination is turned off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is copy of macro as of 2018-08-10 for those having trouble with accessing the github link.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ds2post
/*----------------------------------------------------------------------------
Generate data step to post content of dataset on SAS Communities
----------------------------------------------------------------------------*/
(data     /* Name of dataset to post *REQ*  */
,target=  /* Name to use in generated data step. (default is memname of &amp;amp;DATA) */
,obs=20   /* Number of observations to generate */
,file=log /* Fileref or quoted physical name of file to hold generated code */
,format=  /* Optional format list to use when generating data lines */
);
%local _error noformats;
%*---------------------------------------------------------------------------
Check user parameters.
----------------------------------------------------------------------------;
%let _error=0;
%if "%upcase(%qsubstr(&amp;amp;data,1,2))" = "-H" %then %let _error=1;
%else %if %length(&amp;amp;data) %then %do;
  %if not (%sysfunc(exist(%qscan(&amp;amp;data,1,())))
        or %sysfunc(exist(%qscan(&amp;amp;data,1,()),view))) %then %do;
    %let _error = 1;
    %put ERROR: "&amp;amp;data" is not a valid value for the DATA parameter.;
    %put ERROR: Unable to find the dataset. ;
  %end;
%end;
%else %do;
  %let _error = 1;
  %put ERROR: The DATA parameter is required.;
%end;
%if not %length(&amp;amp;target) %then %let target=%qscan(%qscan(&amp;amp;data,1,()),-1,.);
%if not %length(&amp;amp;obs) %then %let obs=20;
%else %let obs=%upcase(&amp;amp;obs);
%if "&amp;amp;obs" ne "MAX" %then %if %sysfunc(verify(&amp;amp;obs,0123456789)) %then %do;
  %let _error = 1;
  %put ERROR: "&amp;amp;obs" is not a valid value for the OBS parameter.;
  %put ERROR: Valid values are MAX or non-negative integer. ;
%end;
%if not %length(&amp;amp;file) %then %let file=log;

%if (&amp;amp;_error) %then %do;
*----------------------------------------------------------------------------;
* When there are parameter issues then write instructions to the log. ;
*----------------------------------------------------------------------------;
data _null_;
  put
  '%DS2POST'
//'SAS macro to copy data into a SAS Data Step in a '
  'form which you can post to on-line forums.'
//'Syntax:'
/ ' %ds2post(data=,target=,obs=,format=,file=)'
//' data   = Name of SAS dataset (or view) that you want to output.'
//' target = Name to use for generated dataset.'
  ' Default is to use name of the input.'
//' obs    = Number of observations to output. Use MAX to copy complete dataset.'
  ' Default is 20.'
//' file   = Fileref or quoted physical filename for code.'
  ' Default is the SAS log.'
//' format = Optional list of &amp;lt;var_list&amp;gt; &amp;lt;format spec&amp;gt; pairs to use when writing'
  ' data lines.' ' Setting format=_all_ will clear all formats so raw data'
  ' values are written.'
//'Note that this macro will NOT work well for really long data lines.'
 /'If your data has really long variables or a lot of variables then consider'
  ' splitting your dataset in order to post it.'
  ;
run;
%end;
%else %do;
*----------------------------------------------------------------------------;
* Get contents information and sort by VARNUM ;
*----------------------------------------------------------------------------;
proc contents noprint data=&amp;amp;data
  out=_contents_(keep=name varnum type length format: inform: memlabel label)
;
run;
proc sort data=_contents_ ;
  by varnum;
run;
*----------------------------------------------------------------------------;
* Generate top of data step ;
*----------------------------------------------------------------------------;
filename _code_ temp;
data _null_;
  length firstvar name $60 string $300 ;
  retain firstvar ;
  file _code_ column=cc ;
  set _contents_ end=eof ;
  if _n_=1 then do;
    put "data &amp;amp;target" @;
    if not missing(memlabel) then do;
      string=quote(trim(memlabel),"'");
      put '(label=' string ')' @;
    end;
    put ';';
  end;
  name=nliteral(name) ;
  if _n_=1 then firstvar=name;
  string=cats(ifc(type=2,'$',' '),length);
  put '  attrib ' name 'length=' string @;
  if formatl or not missing(format) then do;
     string=cats(format,ifc(formatl,cats(formatl),''),'.',ifc(formatd,cats(formatd),''));
     put 'format=' string @ ;
  end;
  if informl or not missing(informat) then do;
     string=cats(informat,ifc(informl,cats(informl),''),'.',ifc(informd,cats(informd),''));
     if cc+9+length(string)&amp;gt;80 then put / @4 @ ;
     put 'informat=' string @ ;
  end;
  if not missing(label) then do;
     string=quote(trim(label),"'");
     if cc+7&amp;gt;80 then put / @4 'label=' string @ ;
     else if cc+7+length(string)&amp;gt;80 then put 'label=' / @4 string @ ;
     else  put 'label=' string @;
  end;
  put ';' ;
  if eof then do;
     put "  infile datalines dsd dlm='|' truncover;" ;
     put '  input ' firstvar '-- ' name ';';
     put 'datalines4;' ;
  end;
run;
*----------------------------------------------------------------------------;
* Generate list of variables that do not have attached informats. ;
*----------------------------------------------------------------------------;
proc sql noprint;
  select name into :noformats separated by ' '
    from _contents_ where missing(informat)
  ;
quit;
*----------------------------------------------------------------------------;
* Generate data lines ;
*----------------------------------------------------------------------------;
data _null_;
  file _code_ mod dsd dlm='|';
%if (&amp;amp;obs ne MAX) %then %do;
  if _n_ &amp;gt; &amp;amp;obs then stop;
%end;
  set &amp;amp;data ;
%if %length(&amp;amp;noformats) %then %do;
  format &amp;amp;noformats ;
%end;
%if %length(&amp;amp;format) %then %do;
  format &amp;amp;format ;
%end;
  put (_all_) (+0) ;
run;
data _null_;
  file _code_ mod ;
  put ';;;;';
run;
  %if "%qupcase(&amp;amp;file)" ne "_CODE_" %then %do;
*----------------------------------------------------------------------------;
* Copy generated code to target file name ;
*----------------------------------------------------------------------------;
data _null_ ;
  infile _code_;
  file &amp;amp;file ;
  input;
  put _infile_;
run;
  %end;
%end;
%mend ds2post ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dumping-Text-file-to-ODS-output/m-p/485781#M21431</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-10T16:17:32Z</dc:date>
    </item>
  </channel>
</rss>

