<?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: report from different variables in diff data sets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445297#M20619</link>
    <description>&lt;P&gt;combining the data sets is hard to me bc there is no matching to combine them&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 20:24:29 GMT</pubDate>
    <dc:creator>mona4u</dc:creator>
    <dc:date>2018-03-13T20:24:29Z</dc:date>
    <item>
      <title>report from different variables in diff data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445286#M20616</link>
      <description>&lt;P&gt;I want to produce a report which looks like this table I eliminate part of the table to make the explanations easier&amp;nbsp;&lt;/P&gt;&lt;P&gt;Readable time point= sum of varaiable2(which is in data set 2)- sum of variable1 (which is in data set 1)&lt;/P&gt;&lt;P&gt;time point read= sum of&amp;nbsp;&lt;SPAN&gt;variable1 (which is in data set 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to create the report and I want to know if I can create new&amp;nbsp;data set that contains macros of the computation&amp;nbsp;&lt;/P&gt;&lt;P&gt;then create proc report step to output it&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest to me the best way to do it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Readable Time Points:&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Time Points Read&lt;/TD&gt;&lt;TD&gt;29&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445286#M20616</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-13T20:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: report from different variables in diff data sets [how to improve your question]</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445288#M20617</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134228"&gt;@mona4u&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 229px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
      <pubDate>Tue, 13 Mar 2018 20:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445288#M20617</guid>
      <dc:creator>Community_Guide</dc:creator>
      <dc:date>2018-03-13T20:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: report from different variables in diff data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445295#M20618</link>
      <description>&lt;P&gt;Why do you think you need macros? Macro of what&amp;nbsp;computation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely it is easier to create a DATASET combining the two existing data sets, doing some computation there and then using proc report for the output (though your example looks like TABULATE might be cleaner that Report).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual example INPUT data sets and desired output would help.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445295#M20618</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-13T20:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: report from different variables in diff data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445297#M20619</link>
      <description>&lt;P&gt;combining the data sets is hard to me bc there is no matching to combine them&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445297#M20619</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-13T20:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: report from different variables in diff data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445311#M20622</link>
      <description>&lt;P&gt;Here is one of many ways to combine summary data from unrelated datasets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

create view tallBoy as
select 
    name,
    height
from sashelp.class
where sex = "M"
having height = max(height);

create view bigCar as
select 
    make,
    model,
    weight
from sashelp.cars
where type = "Sedan"
having weight = max(weight);

quit;

data reportData;
merge tallBoy bigCar;
run;

proc print data=reportData; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;         Obs     Name     Height       Make            Model         Weight

          1     Philip      72      Volkswagen    Phaeton W12 4dr     5399
&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445311#M20622</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-03-13T20:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: report from different variables in diff data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445867#M20627</link>
      <description>&lt;P&gt;This is really helpful&amp;nbsp; even though I'm still learning proc sql&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 15:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/report-from-different-variables-in-diff-data-sets/m-p/445867#M20627</guid>
      <dc:creator>mona4u</dc:creator>
      <dc:date>2018-03-15T15:23:58Z</dc:date>
    </item>
  </channel>
</rss>

