<?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: I don't want to print column header in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10558#M3010</link>
    <description>Hi:&lt;BR /&gt;
This is a good introduction to using the DATA step with FILE PRINT ODS. Generally, it is NOT recommended to bypass ODS when writing output to an ODS destination file (although the output may look OK for some simple datasets, for complex or "free-format" reports, the output will never look the way it looked in the LISTING destination):&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts664.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts664.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Another alternative is to use PROC REPORT with the NOHEADER option&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473620.htm#a003071998" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473620.htm#a003071998&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
The program below illustrates using NOHEADER in a few different ways.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
data textline;&lt;BR /&gt;
length test $400;&lt;BR /&gt;
  test='Twas brillig and the slithy toves '||&lt;BR /&gt;
       'Did gyre and gimble in the wabe. '||&lt;BR /&gt;
       'All mimsy were the borogroves. '||&lt;BR /&gt;
       'And the mome raths outgrabe.';&lt;BR /&gt;
run;&lt;BR /&gt;
                    &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
options nodate nonumber orientation=portrait;&lt;BR /&gt;
                                     &lt;BR /&gt;
ods pdf file='c:\temp\examp1.pdf' style=styles.printer;&lt;BR /&gt;
              &lt;BR /&gt;
proc report data=textline nowd noheader;&lt;BR /&gt;
  title 'Example 1';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
                       &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                  &lt;BR /&gt;
ods pdf file='c:\temp\examp2.pdf' style=styles.journal;&lt;BR /&gt;
             &lt;BR /&gt;
proc report data=textline nowd noheader;&lt;BR /&gt;
  title 'Example 2';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
            &lt;BR /&gt;
ods pdf file='c:\temp\examp3.pdf' style=styles.printer;&lt;BR /&gt;
         &lt;BR /&gt;
proc report data=textline nowd noheader&lt;BR /&gt;
  style(report)={rules=none frame=void cellspacing=0 cellwidth=3in};&lt;BR /&gt;
  title 'Example 3';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
       &lt;BR /&gt;
ods pdf file='c:\temp\examp4.pdf' style=styles.printer;&lt;BR /&gt;
        &lt;BR /&gt;
proc report data=textline nowd noheader&lt;BR /&gt;
  style(report)={rules=none frame=void cellspacing=0 cellwidth=5in just=l};&lt;BR /&gt;
  title 'Example 4';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
        &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 02 Nov 2009 17:13:12 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-11-02T17:13:12Z</dc:date>
    <item>
      <title>I don't want to print column header</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10556#M3008</link>
      <description>Hi Dear,&lt;BR /&gt;
Here is my sample coding&lt;BR /&gt;
&lt;BR /&gt;
FILENAME PDFFILE 'C:\TEMP.PDF';&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
ODS PDF FILE=PDFFILE STYLE=STYLES.PRINTER;&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
FILE PRINT ODS;&lt;BR /&gt;
TEST ='TESTING MY RECORD';&lt;BR /&gt;
PUT TEST $20. _ODS_;&lt;BR /&gt;
RUN;&lt;BR /&gt;
ODS LISTING;&lt;BR /&gt;
&lt;BR /&gt;
When I run . I see the following output in the PDF output.&lt;BR /&gt;
&lt;BR /&gt;
-------------------------&lt;BR /&gt;
|        TEST       |&lt;BR /&gt;
------------------------&lt;BR /&gt;
&lt;BR /&gt;
TESTING MY RECORD.&lt;BR /&gt;
&lt;BR /&gt;
My problem is , I don't want to print the column header 'TEST'. I just want to print only&lt;BR /&gt;
TESTING MY RECORD only. How can I do this. &lt;BR /&gt;
&lt;BR /&gt;
Thanks so much for your help in advance.&lt;BR /&gt;
&lt;BR /&gt;
Please note that &lt;BR /&gt;
thanks again&lt;BR /&gt;
Inpu</description>
      <pubDate>Mon, 02 Nov 2009 14:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10556#M3008</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2009-11-02T14:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: I don't want to print column header</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10557#M3009</link>
      <description>Remove the ODS keyword on the FILE statement.  Also, if you do not want the title line date and page number, consider adding these statements;&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS NODATE NONUMBER;&lt;BR /&gt;
TITLE;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 02 Nov 2009 16:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10557#M3009</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-02T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: I don't want to print column header</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10558#M3010</link>
      <description>Hi:&lt;BR /&gt;
This is a good introduction to using the DATA step with FILE PRINT ODS. Generally, it is NOT recommended to bypass ODS when writing output to an ODS destination file (although the output may look OK for some simple datasets, for complex or "free-format" reports, the output will never look the way it looked in the LISTING destination):&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts664.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts664.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Another alternative is to use PROC REPORT with the NOHEADER option&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473620.htm#a003071998" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473620.htm#a003071998&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
The program below illustrates using NOHEADER in a few different ways.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
data textline;&lt;BR /&gt;
length test $400;&lt;BR /&gt;
  test='Twas brillig and the slithy toves '||&lt;BR /&gt;
       'Did gyre and gimble in the wabe. '||&lt;BR /&gt;
       'All mimsy were the borogroves. '||&lt;BR /&gt;
       'And the mome raths outgrabe.';&lt;BR /&gt;
run;&lt;BR /&gt;
                    &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
options nodate nonumber orientation=portrait;&lt;BR /&gt;
                                     &lt;BR /&gt;
ods pdf file='c:\temp\examp1.pdf' style=styles.printer;&lt;BR /&gt;
              &lt;BR /&gt;
proc report data=textline nowd noheader;&lt;BR /&gt;
  title 'Example 1';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
                       &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                  &lt;BR /&gt;
ods pdf file='c:\temp\examp2.pdf' style=styles.journal;&lt;BR /&gt;
             &lt;BR /&gt;
proc report data=textline nowd noheader;&lt;BR /&gt;
  title 'Example 2';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
            &lt;BR /&gt;
ods pdf file='c:\temp\examp3.pdf' style=styles.printer;&lt;BR /&gt;
         &lt;BR /&gt;
proc report data=textline nowd noheader&lt;BR /&gt;
  style(report)={rules=none frame=void cellspacing=0 cellwidth=3in};&lt;BR /&gt;
  title 'Example 3';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
       &lt;BR /&gt;
ods pdf file='c:\temp\examp4.pdf' style=styles.printer;&lt;BR /&gt;
        &lt;BR /&gt;
proc report data=textline nowd noheader&lt;BR /&gt;
  style(report)={rules=none frame=void cellspacing=0 cellwidth=5in just=l};&lt;BR /&gt;
  title 'Example 4';&lt;BR /&gt;
  column test;&lt;BR /&gt;
run;&lt;BR /&gt;
        &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 02 Nov 2009 17:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10558#M3010</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-11-02T17:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: I don't want to print column header</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10559#M3011</link>
      <description>Hi Cynthia,&lt;BR /&gt;
Thanks a lot.Amazing .It perfectly works to me.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks again Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
regards Inp</description>
      <pubDate>Mon, 02 Nov 2009 21:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/I-don-t-want-to-print-column-header/m-p/10559#M3011</guid>
      <dc:creator>Inp</dc:creator>
      <dc:date>2009-11-02T21:40:57Z</dc:date>
    </item>
  </channel>
</rss>

