<?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: Creation of tables using macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856594#M338456</link>
    <description>Yes I have this code using proc report but I want to do this using&lt;BR /&gt;macros...&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Feb 2023 08:58:05 GMT</pubDate>
    <dc:creator>Gauri123-56</dc:creator>
    <dc:date>2023-02-01T08:58:05Z</dc:date>
    <item>
      <title>Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856581#M338449</link>
      <description>I'm new to sas programming don't know how to create tables. Actually I want to create table of adverse events like the format attached below</description>
      <pubDate>Wed, 01 Feb 2023 05:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856581#M338449</guid>
      <dc:creator>Gauri123-56</dc:creator>
      <dc:date>2023-02-01T05:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856589#M338453</link>
      <description>&lt;P&gt;We need to see the source data; please provide an example, in &lt;U&gt;text&lt;/U&gt; form, ideally as a data step with datalines, and also an example for the expected report.&lt;/P&gt;
&lt;P&gt;Post SAS code by using the "little running man" button; for other structured text (e.g. logs), use the &amp;lt;/&amp;gt; button.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856589#M338453</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-01T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856592#M338454</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404913"&gt;@Gauri123-56&lt;/a&gt;&amp;nbsp;What your pdf shows is not a table but a report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will first need to do some training before you are able to produce such a report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Google: What is a SAS table&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1675241045717.png" style="width: 597px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79983i9BC0379C7AFDDA4C/image-dimensions/597x88?v=v2" width="597" height="88" role="button" title="Patrick_0-1675241045717.png" alt="Patrick_0-1675241045717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A report is the presentation/printing of the data stored in a table in some tabular form.&lt;/P&gt;
&lt;P&gt;Looking at your pdf the most likely SAS procedure to use is Proc Report. You would also need to format your data so it presents/prints the way you want it to.&lt;/P&gt;
&lt;P&gt;Unlike your subject line suggests there is no SAS Macro language required for such a report. Don't even go there before you're familiar with the SAS data step language and the "foundation" set of SAS procedures like Proc Report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856592#M338454</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-01T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856593#M338455</link>
      <description>&lt;P&gt;If new to SAS programming, I suggest that you talk a calss (e.g. Programing 1 - free online option is available).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/edu/schedules.html?crs=PROG1&amp;amp;ctry=SE" target="_blank"&gt;https://support.sas.com/edu/schedules.html?crs=PROG1&amp;amp;ctry=SE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856593#M338455</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-02-01T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856594#M338456</link>
      <description>Yes I have this code using proc report but I want to do this using&lt;BR /&gt;macros...&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856594#M338456</guid>
      <dc:creator>Gauri123-56</dc:creator>
      <dc:date>2023-02-01T08:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856595#M338457</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404913"&gt;@Gauri123-56&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes I have this code using proc report but I want to do this using&lt;BR /&gt;macros...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS macro language is used to dynamically generate SAS language syntax for execution. SAS macro langue is not suited nor meant for report writing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 09:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856595#M338457</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-01T09:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of tables using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856599#M338460</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404913"&gt;@Gauri123-56&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes I have this code using proc report but I want to do this using&lt;BR /&gt;macros...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Bullshit. Macros are for&amp;nbsp;&lt;EM&gt;creating dynamic code&lt;/EM&gt;, not for&amp;nbsp;&lt;EM&gt;creating reports&lt;/EM&gt;. As others have already suggested, you need to first become&amp;nbsp;&lt;U&gt;deeply familiar&lt;/U&gt; with data step programming and the use of essential procedures (SORT, REPORT, MEANS, FREQ, TABULATE, SQL, TRANSPOSE, to name just a few) before you can even&amp;nbsp;&lt;EM&gt;think&lt;/EM&gt; about macro programming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you are already at the step where you have&amp;nbsp;&lt;EM&gt;working code&lt;/EM&gt; and want to make it dynamic, you need to show that code, and which parts of it need to be made dynamic, and the information on which the dynamics are based (e.g. a dataset which contains control information).&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-of-tables-using-macros/m-p/856599#M338460</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-01T17:55:01Z</dc:date>
    </item>
  </channel>
</rss>

