<?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: Can see only output data in tabular form while using proc report in SAS ODA in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855023#M337954</link>
    <description>Hi:&lt;BR /&gt;  Your screen shot of desired results is the type of report typically called a demographic report. There is not any SAS procedure that will generate that type of report for you by default. You have to do more manipulation of the summarized data in order to generate the type of report you show. For example, your XX (XX%) for the values for the Active vs the Placebo is usually the concatenation of 2 numeric variables (N and PCTN) in order to make a character string that can be displayed under each major column. Typically, to get the results for GENDER, you run PROC FREQ for each of your groups (ACTIVE/PLACEBO) and then for your AGE values, you run PROC MEANS. Generally, you need to post process the data from both of these procedures to get the data in a form that's ready for PROC REPORT. There are several macro programs floating around that do it. I have several examples using PROC REPORT with some helper variables in my Creating Complex Reports paper and Lisa Fine has some examples of this type of report in her book on using PROC REPORT and I'm sure I remember several PharmaSUG papers that had different ways to use PROC REPORT or the DATA step to generate this type of report.&lt;BR /&gt;Cynthia</description>
    <pubDate>Sun, 22 Jan 2023 21:38:18 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2023-01-22T21:38:18Z</dc:date>
    <item>
      <title>proc report in SAS ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855012#M337943</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to SAS and while I was learning I was using proc report for sashelp.class, and then fetching the output in an rtf format to see the output but in reality I got a simple tabular format and didn't get expected results.&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;title "ABC school";&lt;BR /&gt;title2 "Students report";&lt;BR /&gt;footnote "This is a sample report.Don't rely on it";&lt;BR /&gt;ods rtf file="/home/u62925501/MyFolder/sample.rtf";&lt;BR /&gt;proc report data=sashelp.class (obs =10) nowd headline headskip split='*' out= ds1;&lt;BR /&gt;columns ("Student Class data"("Details" name sex) ("Measures" age height weight));&lt;BR /&gt;define sex/group;&lt;BR /&gt;break after sex/summarize;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the output coming in rtf file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v307086_0-1674409562135.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79592iAF76848C3E9F4488/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v307086_0-1674409562135.png" alt="v307086_0-1674409562135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output is:(note it is just a sample image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v307086_1-1674409561975.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79591i954BD4E7E25F2517/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v307086_1-1674409561975.png" alt="v307086_1-1674409561975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 17:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855012#M337943</guid>
      <dc:creator>v307086</dc:creator>
      <dc:date>2023-01-22T17:46:43Z</dc:date>
    </item>
    <item>
      <title>I can only see a table while using proc in sas oda. I can see only table form. can anyone help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/854987#M337947</link>
      <description />
      <pubDate>Sun, 22 Jan 2023 01:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/854987#M337947</guid>
      <dc:creator>v307086</dc:creator>
      <dc:date>2023-01-22T01:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: I can only see a table while using proc in sas oda. I can see only table form. can anyone help m</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/854992#M337948</link>
      <description>&lt;P&gt;SAS ODA =&amp;nbsp;&lt;SPAN&gt;SAS OnDemand for Academics (ODA).&lt;BR /&gt;For the rest ... , no clue what you are talking about &lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please elaborate !&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 11:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/854992#M337948</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-01-22T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: I can only see a table while using proc in sas oda. I can see only table form. can anyone help m</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/854993#M337949</link>
      <description>&lt;P&gt;In SAS Studio, you can call up any table to view it, and leave it viewable for as long as you want (in other words until you close it).&lt;/P&gt;
&lt;P&gt;Step 1: Go to Libraries on the left.&lt;/P&gt;
&lt;P&gt;Step 2: Expand "My Libraries".&lt;/P&gt;
&lt;P&gt;Step 3: Expand the library of interest (often the WORK library).&lt;/P&gt;
&lt;P&gt;Step 4: double-click on the data set of interest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you next run code, the data set you just opened remains open, however "My Libraries" collapses and you have to go through steps 2 through 4 again to get to that library. I do find this incredibly annoying and a major drawback of SAS Studio, making programming much more time consuming, but it is possible.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 12:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/854993#M337949</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-22T12:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can see only output data in tabular form while using proc report in SAS ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855009#M337950</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to SAS and while I was learning I was using proc report for sashelp.class, and then fetching the output in an rtf format to see the output but in reality I got a simple tabular format and didn't get expected results.&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;title "ABC school";&lt;BR /&gt;title2 "Students report";&lt;BR /&gt;footnote "This is a sample report.Don't rely on it";&lt;BR /&gt;ods rtf file="/home/u62925501/MyFolder/sample.rtf";&lt;BR /&gt;proc report data=sashelp.class (obs =10) nowd headline headskip split='*' out= ds1;&lt;BR /&gt;columns ("Student Class data"("Details" name sex) ("Measures" age height weight));&lt;BR /&gt;define sex/group;&lt;BR /&gt;break after sex/summarize;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the output coming in rtf file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v307086_0-1674409020728.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79589i12B04B8F7031E7B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v307086_0-1674409020728.png" alt="v307086_0-1674409020728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output is:(note it is just a sample image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v307086_1-1674409395740.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79590iBBDACAEA1619816D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v307086_1-1674409395740.png" alt="v307086_1-1674409395740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 17:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855009#M337950</guid>
      <dc:creator>v307086</dc:creator>
      <dc:date>2023-01-22T17:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc report in SAS ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855015#M337945</link>
      <description>&lt;P&gt;Your expectations are wrong. PROC REPORT gave you exactly what you asked for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want something like the text output shown, you'd have to write code to get that, or perhaps use the &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Demographic-Table-and-Subgroup-Summary-Macro-TABLEN/ta-p/634030" target="_self"&gt;%TABLEN macro&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 18:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855015#M337945</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-22T18:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can see only output data in tabular form while using proc report in SAS ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855017#M337951</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438713"&gt;@v307086&lt;/a&gt; , don't post the same question twice, and don't change the topic of a thread in the middle. Your PROC REPORT question should be discussed in your other thread at &lt;A href="https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/td-p/855012/jump-to/first-unread-message" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/td-p/855012/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 18:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855017#M337951</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-22T18:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can see only output data in tabular form while using proc report in SAS ODA</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855023#M337954</link>
      <description>Hi:&lt;BR /&gt;  Your screen shot of desired results is the type of report typically called a demographic report. There is not any SAS procedure that will generate that type of report for you by default. You have to do more manipulation of the summarized data in order to generate the type of report you show. For example, your XX (XX%) for the values for the Active vs the Placebo is usually the concatenation of 2 numeric variables (N and PCTN) in order to make a character string that can be displayed under each major column. Typically, to get the results for GENDER, you run PROC FREQ for each of your groups (ACTIVE/PLACEBO) and then for your AGE values, you run PROC MEANS. Generally, you need to post process the data from both of these procedures to get the data in a form that's ready for PROC REPORT. There are several macro programs floating around that do it. I have several examples using PROC REPORT with some helper variables in my Creating Complex Reports paper and Lisa Fine has some examples of this type of report in her book on using PROC REPORT and I'm sure I remember several PharmaSUG papers that had different ways to use PROC REPORT or the DATA step to generate this type of report.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 22 Jan 2023 21:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-in-SAS-ODA/m-p/855023#M337954</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-01-22T21:38:18Z</dc:date>
    </item>
  </channel>
</rss>

