<?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: Preserve Leading Blanks in ODS Output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424817#M20100</link>
    <description>Sure, will do.. Thanks Cynthia..</description>
    <pubDate>Thu, 04 Jan 2018 05:04:17 GMT</pubDate>
    <dc:creator>don21</dc:creator>
    <dc:date>2018-01-04T05:04:17Z</dc:date>
    <item>
      <title>Preserve Leading Blanks in ODS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/1935#M856</link>
      <description>I have a mainframe output file that I am trying to convert to a .PDF document to be e.mailed.&lt;BR /&gt;
&lt;BR /&gt;
The file has been read in line by line as one variable, with an informat of $CHAR112. so that leading blanks are preserved.&lt;BR /&gt;
&lt;BR /&gt;
If I use Proc Print or Proc Report to just dump the contents, the leading blanks are removed.&lt;BR /&gt;
&lt;BR /&gt;
If I use DATA _NULL_ with FILE PRINT ODS, the leading blanks are also removed, even if I specify a format of $CHAR112. as a suboption.&lt;BR /&gt;
&lt;BR /&gt;
The only method which almost works is a simple DATA _NULL_ with a regular PUT statement (not PUT _ODS_).  The problem here is that I have to make the font very small to prevent this method from inserting a blank line between every output record, which is also not desired.&lt;BR /&gt;
&lt;BR /&gt;
So, any ideas on how to maintain leading spaces and prevent extra lines from being printed?</description>
      <pubDate>Sun, 10 Dec 2006 19:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/1935#M856</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2006-12-10T19:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve Leading Blanks in ODS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/1936#M857</link>
      <description>Hi!&lt;BR /&gt;
  Try the style attribute ASIS=ON in your PRINT or REPORT -- &lt;BR /&gt;
&lt;BR /&gt;
  Proc Report data=whatever nowd;&lt;BR /&gt;
  column bigline;&lt;BR /&gt;
  define bigline /display&lt;BR /&gt;
         style(column)={asis=on};&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
OR&lt;BR /&gt;
  Proc Print data=whatever noobs;&lt;BR /&gt;
  var bigline / style(data)={asis=on};&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
That attribute generally preserves leading blanks. You may also want to adjust your PDF orientation and/or margins using an option statement:&lt;BR /&gt;
&lt;BR /&gt;
option orientation=landscape topmargin=.5in bottommargin=.5in leftmargin=.5in rightmargin=.5in;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file='.....';&lt;BR /&gt;
&lt;BR /&gt;
good luck!&lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 10 Dec 2006 23:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/1936#M857</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-12-10T23:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve Leading Blanks in ODS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/1937#M858</link>
      <description>Excellent!  Worked perfect with Proc Report!&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Cynthia!</description>
      <pubDate>Mon, 11 Dec 2006 16:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/1937#M858</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2006-12-11T16:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve Leading Blanks in ODS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424550#M20090</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What if I want to preserve the format that applied for a variable in proc report to be displayed as is in ODS output..?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 11:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424550#M20090</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-01-03T11:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve Leading Blanks in ODS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424680#M20091</link>
      <description>Hi:&lt;BR /&gt;  It's not a good idea to add a new question to an 11 year old forum posting. I almost didn't read this because it was so old. I just figured there was a glitch of some kind in the forum interface.&lt;BR /&gt;&lt;BR /&gt;  To post a new question, if it is related to a previous post, you can put a link to the previous post in your new post. I don't understand what you mean when you say that you want to "preserve the format" -- typically with "regular" ODS destinations, such as HTML, RTF and PDF, the SAS formats you use (as in a FORMAT statement) are respected. The only time SAS formats are not respected are when you create your output with an Excel-related destination. Excel has its own ideas about how to deal with variable formats and frequently does not respect the SAS format.&lt;BR /&gt;&lt;BR /&gt;  It would be better for you to start a new post in the ODS and Reporting forum, with a sample of your data or using a SASHELP data set and an example of the type of format you want preserved. Showing the code you're using, including your ODS destination statements would be very useful. Otherwise, everybody is guessing about what you mean and what your desired output is.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 03 Jan 2018 19:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424680#M20091</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-03T19:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Preserve Leading Blanks in ODS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424817#M20100</link>
      <description>Sure, will do.. Thanks Cynthia..</description>
      <pubDate>Thu, 04 Jan 2018 05:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Preserve-Leading-Blanks-in-ODS-Output/m-p/424817#M20100</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-01-04T05:04:17Z</dc:date>
    </item>
  </channel>
</rss>

