<?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: SAS macro which will generate the PDF/Excel/RTF report from the input SAS dataset in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-macro-which-will-generate-the-PDF-Excel-RTF-report-from-the/m-p/241817#M15005</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60507"&gt;@RTelang﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you have already received several replies &lt;A href="https://communities.sas.com/t5/SAS-Procedures/SAS-macro-to-generate-the-PDF-Excel-RTF-report-from-the-input/m-p/241783" target="_self"&gt;to a similar post in the SAS Procedures forum&lt;/A&gt;. &amp;nbsp;While the audience in this ODS/Reporting board might have a few different folks, most of the experts participate in all of the SAS programming related areas on the community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most helpful responses come when you can share what you've tried and which concepts/syntax you find the most challenging. &amp;nbsp;The community members are eager to help you to learn, but they don't want to feel treated as contract programmers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to learn/practice programming, may I suggest that you try &lt;A href="https://communities.sas.com/t5/SAS-Analytics-U/bd-p/sas_analytics_u" target="_self"&gt;the resources in SAS Analytics U&lt;/A&gt;? &amp;nbsp;Despite the name, the resources there are free to any learner, not just those enrolled in university.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;Manager, SAS Online Communities&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2016 12:40:47 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2016-01-05T12:40:47Z</dc:date>
    <item>
      <title>SAS macro which will generate the PDF/Excel/RTF report from the input SAS dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-macro-which-will-generate-the-PDF-Excel-RTF-report-from-the/m-p/241798#M15004</link>
      <description>&lt;P&gt;basically i need a generic macro when called upon to create a report in pdf,rtf,excel &amp;amp; the macro has these parameters---&amp;gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;indsn – Input Dataset&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;varlist – List of Variables to be printed. If none then print all variables in the dataset.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;report_type – PDF or Excel or RTF. You need to use appropriate ODS statements.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;title1 – Title1 of the report&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;footnote1 – Footnote1 of the report&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;report_location – Physical location of the report&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;how do i further build my code according to my question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;input ID var1 var2 var3 var4;&lt;BR /&gt;cards;&lt;BR /&gt;1 6 4 4 5&lt;BR /&gt;6 5 4 5 5&lt;BR /&gt;3 7 9 5 9 &lt;BR /&gt;7 9 4 8 6&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf file='/folders/myfolders/v.pdf';&lt;BR /&gt;proc print data=work.test;&lt;BR /&gt;var ID;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro reportgen(indsn=,varlist=, report_type=, title1=, footnote=, report_location=);&lt;BR /&gt;%local i nextword;&lt;BR /&gt;%let dsid =%sysfunc(open(&amp;amp;indsn));&lt;BR /&gt;%do i=1 %to %sysfunc(countw(&amp;amp;varlist));&lt;BR /&gt;%let nextword = %scan(&amp;amp;varlist, &amp;amp;i);&lt;BR /&gt; %end;&lt;BR /&gt;%mend reportgen;&lt;BR /&gt;%macro reportgen(indsn=work.test,varlist=var1 var2 var4,report_type=,title1=,footnote=,report_location);&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 09:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-macro-which-will-generate-the-PDF-Excel-RTF-report-from-the/m-p/241798#M15004</guid>
      <dc:creator>RTelang</dc:creator>
      <dc:date>2016-01-05T09:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro which will generate the PDF/Excel/RTF report from the input SAS dataset</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-macro-which-will-generate-the-PDF-Excel-RTF-report-from-the/m-p/241817#M15005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60507"&gt;@RTelang﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you have already received several replies &lt;A href="https://communities.sas.com/t5/SAS-Procedures/SAS-macro-to-generate-the-PDF-Excel-RTF-report-from-the-input/m-p/241783" target="_self"&gt;to a similar post in the SAS Procedures forum&lt;/A&gt;. &amp;nbsp;While the audience in this ODS/Reporting board might have a few different folks, most of the experts participate in all of the SAS programming related areas on the community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most helpful responses come when you can share what you've tried and which concepts/syntax you find the most challenging. &amp;nbsp;The community members are eager to help you to learn, but they don't want to feel treated as contract programmers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to learn/practice programming, may I suggest that you try &lt;A href="https://communities.sas.com/t5/SAS-Analytics-U/bd-p/sas_analytics_u" target="_self"&gt;the resources in SAS Analytics U&lt;/A&gt;? &amp;nbsp;Despite the name, the resources there are free to any learner, not just those enrolled in university.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;Manager, SAS Online Communities&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 12:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-macro-which-will-generate-the-PDF-Excel-RTF-report-from-the/m-p/241817#M15005</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-01-05T12:40:47Z</dc:date>
    </item>
  </channel>
</rss>

