<?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 can we print title statement without using proc statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142039#M261647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below code to print title statement and test data set records.&lt;/P&gt;&lt;P&gt;data _null_;&amp;nbsp; set work.test;&lt;/P&gt;&lt;P&gt;call symput('source_date' left(put(src_date, data9.)));&lt;/P&gt;&lt;P&gt;stop; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT Data=Test;&lt;/P&gt;&lt;P&gt;title "list report for test &amp;amp;source_date";&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would like to print only TITLE statement text , means dont want display 'Test' data set records using PROC PRINT Data=Test;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have removed PROC PRINT Data=test; RUN; and rest executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data _null_&lt;/P&gt;&lt;P&gt;set work.test;&lt;/P&gt;&lt;P&gt;call symput('source_date' left(put(src_date, data9.)));&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title "list report for test &amp;amp;source_date";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result = No Error, but output blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any function or option to print title statement in result window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx- Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 10:22:48 GMT</pubDate>
    <dc:creator>Ram4sas</dc:creator>
    <dc:date>2014-03-13T10:22:48Z</dc:date>
    <item>
      <title>can we print title statement without using proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142039#M261647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below code to print title statement and test data set records.&lt;/P&gt;&lt;P&gt;data _null_;&amp;nbsp; set work.test;&lt;/P&gt;&lt;P&gt;call symput('source_date' left(put(src_date, data9.)));&lt;/P&gt;&lt;P&gt;stop; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT Data=Test;&lt;/P&gt;&lt;P&gt;title "list report for test &amp;amp;source_date";&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would like to print only TITLE statement text , means dont want display 'Test' data set records using PROC PRINT Data=Test;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have removed PROC PRINT Data=test; RUN; and rest executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data _null_&lt;/P&gt;&lt;P&gt;set work.test;&lt;/P&gt;&lt;P&gt;call symput('source_date' left(put(src_date, data9.)));&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title "list report for test &amp;amp;source_date";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result = No Error, but output blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any function or option to print title statement in result window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx- Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 10:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142039#M261647</guid>
      <dc:creator>Ram4sas</dc:creator>
      <dc:date>2014-03-13T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: can we print title statement without using proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142040#M261648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of call symput and the title step, why not just put that information into a dataset and then print that.&amp;nbsp; E.g.&lt;/P&gt;&lt;P&gt;data list_of_titles;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib title_text format=$2000.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title_text="list report for test "||left(put(src_date, data9.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=list_of_titles;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title "list report for all rows from test";&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 10:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142040#M261648</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-03-13T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: can we print title statement without using proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142041#M261649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Proc REPORT with the NOHEADER option or depending on the ODS desination make use of the ODS text="", see sample below. The TITLE statement will not produce output without some Proc printing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; title;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"This is my title Proc Report"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;report&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=title &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nowindows&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;noheader&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;nocenter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;(column) = { background=yellow };&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"this is my title ods text="&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 12:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/142041#M261649</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2014-03-13T12:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: can we print title statement without using proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/672410#M261650</link>
      <description>&lt;P&gt;Bruno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This didn't work for me; I got the messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: No variables in data set WORK.TITLE.&lt;BR /&gt;NOTE: No variables in input data set.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 19:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/672410#M261650</guid>
      <dc:creator>Barry_DeCicco</dc:creator>
      <dc:date>2020-07-26T19:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: can we print title statement without using proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/672417#M261651</link>
      <description>&lt;P&gt;Why not just use a BY statement?&lt;/P&gt;
&lt;P&gt;Either just have the PROC write the BY header.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=test;
  by src_date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or use #BYVAL in your TITLE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;
title "list report for test #byval";
proc print data=test;
  by src_date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 22:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-print-title-statement-without-using-proc-statement/m-p/672417#M261651</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-26T22:05:56Z</dc:date>
    </item>
  </channel>
</rss>

