<?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: Keep leading spaces and blank records in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258554#M15449</link>
    <description>&lt;P&gt;It may help to show&amp;nbsp; exactly&amp;nbsp;how you made your data, some example data and the whole code for that example data that you attempted and what isn't quite working.&lt;/P&gt;
&lt;P&gt;It would also help to show exactly how you would desire the output to look for the example data.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2016 14:53:05 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-03-23T14:53:05Z</dc:date>
    <item>
      <title>Keep leading spaces and blank records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258377#M15439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create demographics table. For alignment purpose I'm using a macro described in following paper.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.pharmasug.org/proceedings/2013/CC/PharmaSUG-2013-CC15.pdf" target="_blank"&gt;http://www.pharmasug.org/proceedings/2013/CC/PharmaSUG-2013-CC15.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is, I'm able to get aligned values in dataset but when I'm using proc report to output in ODS rtf, all the leading blanks, used for alignment are lost. I tried using other characters like &amp;lt;&amp;lt; instead of blanks and it's working fine. Looks like only blanks has some problem. I also tried&amp;nbsp;&lt;SPAN&gt;style(column)={asis=on}; but still its removing all leading blank spaces.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 23:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258377#M15439</guid>
      <dc:creator>Neeta</dc:creator>
      <dc:date>2016-03-22T23:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading spaces and blank records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258386#M15440</link>
      <description>1)   style(column)={pretext='    '}; 
2) use TAB character '09'x instead of white blank .
3) use escapechar :

data new;
 set have;
 column='~_~_~_~_'||column;
run;
ods escapechar='~';
proc report data=new nowd.</description>
      <pubDate>Wed, 23 Mar 2016 01:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258386#M15440</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-23T01:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading spaces and blank records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258446#M15441</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is something I do alot and asis=on should work fine. &amp;nbsp;Try the code below, make sure you have put the asis in the right place, and that the spaces are actually in the data - i.e. is there something triming or stripping the data&amp;amp;colon;&lt;/P&gt;
&lt;PRE&gt;data have;
  a="Abcd"; output;
  a="  Defg"; output;
run;
ods rtf file="s:\temp\rob\tmp.rtf";
proc report data=have nowd;
  columns a;
  define a / style(column)={asis=on};
run;
ods rtf close;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Mar 2016 09:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258446#M15441</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-23T09:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading spaces and blank records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258554#M15449</link>
      <description>&lt;P&gt;It may help to show&amp;nbsp; exactly&amp;nbsp;how you made your data, some example data and the whole code for that example data that you attempted and what isn't quite working.&lt;/P&gt;
&lt;P&gt;It would also help to show exactly how you would desire the output to look for the example data.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 14:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/258554#M15449</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-23T14:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading spaces and blank records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/600017#M23440</link>
      <description>&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;This code will not work for RTF. ASIS=ON applicable for LISTING and HTML outputs.&lt;/P&gt;&lt;P&gt;Have a look at your tmp.rtf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BRGDS,&lt;/P&gt;&lt;P&gt;Crow&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 10:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/600017#M23440</guid>
      <dc:creator>crow</dc:creator>
      <dc:date>2019-10-29T10:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Keep leading spaces and blank records</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/600020#M23441</link>
      <description>&lt;P&gt;This code works exactly as it is intended producing the output shown in the picture&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.jpg" style="width: 535px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33457i362D649A70E15715/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.jpg" alt="Capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which is correct with spacing presented.&amp;nbsp; It is also widely documented as being used in RTF by other people such as:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/phuse/2007/cs/CS08.pdf" target="_blank"&gt;https://www.lexjansen.com/phuse/2007/cs/CS08.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please avoid re-opening 3.5 year old threads just to post incorrect information.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 11:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-leading-spaces-and-blank-records/m-p/600020#M23441</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-10-29T11:13:10Z</dc:date>
    </item>
  </channel>
</rss>

