<?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: ODS and template question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307896#M17264</link>
    <description>&lt;P&gt;What is it your trying to do, to display the dataset in the output window you would simply put:&lt;/P&gt;
&lt;PRE&gt;data ab;
  input a1-a5 b1-b5;
datalines;
1 2 3 4 5 101 102 103 104 105
6 7 8 9 10 106 107 108 109 110
11 12 13 14 15 111 112 113 114 115
;
run;

proc print data=ab;
run;&lt;/PRE&gt;
&lt;P&gt;I don't understand why you have all that other code?&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 12:08:04 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-10-28T12:08:04Z</dc:date>
    <item>
      <title>ODS and template question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307889#M17262</link>
      <description>&lt;P&gt;I put the below code. Why are there no data print out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ab;&lt;BR /&gt;input a1-a5 b1-b5;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 3 4 5 101 102 103 104 105&lt;BR /&gt;6 7 8 9 10 106 107 108 109 110&lt;BR /&gt;11 12 13 14 15 111 112 113 114 115&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%MACRO render(template, dataset);&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;SET &amp;amp;dataset;&lt;BR /&gt;FILE PRINT ODS=(TEMPLATE="&amp;amp;template");&lt;BR /&gt;PUT ODS;&lt;BR /&gt;RUN;&lt;BR /&gt;%MEND render;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC TEMPLATE;&lt;BR /&gt;DEFINE TABLE mytable;&lt;BR /&gt;COLUMN a1-a5 b1-b5;&lt;BR /&gt;END;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%render(mytable,ab)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307889#M17262</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2016-10-28T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and template question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307896#M17264</link>
      <description>&lt;P&gt;What is it your trying to do, to display the dataset in the output window you would simply put:&lt;/P&gt;
&lt;PRE&gt;data ab;
  input a1-a5 b1-b5;
datalines;
1 2 3 4 5 101 102 103 104 105
6 7 8 9 10 106 107 108 109 110
11 12 13 14 15 111 112 113 114 115
;
run;

proc print data=ab;
run;&lt;/PRE&gt;
&lt;P&gt;I don't understand why you have all that other code?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 12:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307896#M17264</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-28T12:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and template question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307916#M17265</link>
      <description>&lt;P&gt;I want to use the template on my table. Before I do that I want to check if this way does work or not. So here I give a simple example.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/307916#M17265</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2016-10-28T13:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and template question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/308014#M17272</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; Before you "macroize" anything, you should test it outside of macro to see if it works. When I run only your PROC TEMPLATE code and DATA step code, I get errors.&lt;BR /&gt;&lt;BR /&gt;I assume you got this error too:&lt;BR /&gt;NOTE: Variable ODS is uninitialized.&lt;BR /&gt;&lt;BR /&gt;Just to begin with, your PUT statement is incorrect. It should not be &lt;BR /&gt;PUT ODS;&lt;BR /&gt;&lt;BR /&gt;The correct syntax is PUT _ODS_ -- please refer to the doc or to this paper: &lt;A href="http://www2.sas.com/proceedings/sugi30/088-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/088-30.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 15:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/308014#M17272</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-10-29T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS and template question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/308082#M17274</link>
      <description>&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks. You are right. I also got some errors. I am sure it is ods's reason. However, I am not sure how to use "put" with ODS. Thanks for your response and the suggested document. It is really helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 10:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-and-template-question/m-p/308082#M17274</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2016-10-29T10:34:51Z</dc:date>
    </item>
  </channel>
</rss>

