<?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: Listings with PROC Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267781#M15794</link>
    <description>How about :

&lt;PRE&gt;
data have;
input Patient   (testday    test      result) ($);
cards;
1001      Day01     test01   good
1001      Day01    test02    bad
1001      Day02    test01   good
1001      Day02     test02  good
1002      Day01    test01  good
1002      Day01    test02  good
1002      Day02    test01  bad
1002      Day02    test02  bad
;
run;

proc report data=have nowd;
by Patient;
columns test testday,result;
define test/group ' ';
define testday/across ' ';
define result/group ' ';
run;

&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 May 2016 03:01:48 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-05-03T03:01:48Z</dc:date>
    <item>
      <title>Listings with PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267661#M15785</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having a bit of trouble making a listing out of my data and was hoping someone could point me in the right direction.&lt;/P&gt;&lt;P&gt;Below I've given a simplified version of my data. It consists of two patients (1001 and 1002) who came in on two different days (day01 and day02) to have two different tests&amp;nbsp;(test01 and test02) which can have two different results (good or bad).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Patient &amp;nbsp; testday &amp;nbsp; &amp;nbsp;test &amp;nbsp; &amp;nbsp; &amp;nbsp;result&lt;BR /&gt;1001 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day01 &amp;nbsp; &amp;nbsp; test01 &amp;nbsp; good&lt;BR /&gt;1001 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day01 &amp;nbsp; &amp;nbsp;test02 &amp;nbsp; &amp;nbsp;bad&lt;BR /&gt;1001 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day02 &amp;nbsp; &amp;nbsp;test01 &amp;nbsp; good&lt;BR /&gt;1001 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day02 &amp;nbsp; &amp;nbsp; test02 &amp;nbsp;good&lt;BR /&gt;1002 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day01 &amp;nbsp; &amp;nbsp;test01 &amp;nbsp;good&lt;BR /&gt;1002 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day01 &amp;nbsp; &amp;nbsp;test02 &amp;nbsp;good&lt;BR /&gt;1002 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day02 &amp;nbsp; &amp;nbsp;test01 &amp;nbsp;bad&lt;BR /&gt;1002 &amp;nbsp; &amp;nbsp; &amp;nbsp;Day02 &amp;nbsp; &amp;nbsp;test02 &amp;nbsp;bad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to output the data in the following form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patient 1001:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Day01 Day02&lt;BR /&gt;Test1 &amp;nbsp; &amp;nbsp;good &amp;nbsp; good&lt;BR /&gt;Test2 &amp;nbsp; &amp;nbsp; bad &amp;nbsp; &amp;nbsp;good&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Patient 1002:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Day01 Day02&lt;BR /&gt;Test1 &amp;nbsp;good &amp;nbsp; &amp;nbsp;bad&lt;BR /&gt;Test2 &amp;nbsp;good &amp;nbsp; &amp;nbsp;bad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if the result variable was numeric I could make something like this quite easily using the tabulate procedure using a "table patient, test, testday*result" statement.&lt;/P&gt;&lt;P&gt;I can get something roughly equivalent using proc print and by variables but not exactly. I could also set about transposing the data into a new table and print that out.&lt;/P&gt;&lt;P&gt;However I think what I need to be using is the report procedure, but frankly I'm having little luck in working out what I need to do.&lt;/P&gt;&lt;P&gt;If someone could point me in the right direction that would be terrific.&lt;/P&gt;&lt;P&gt;Many thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 16:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267661#M15785</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2016-05-02T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Listings with PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267781#M15794</link>
      <description>How about :

&lt;PRE&gt;
data have;
input Patient   (testday    test      result) ($);
cards;
1001      Day01     test01   good
1001      Day01    test02    bad
1001      Day02    test01   good
1001      Day02     test02  good
1002      Day01    test01  good
1002      Day01    test02  good
1002      Day02    test01  bad
1002      Day02    test02  bad
;
run;

proc report data=have nowd;
by Patient;
columns test testday,result;
define test/group ' ';
define testday/across ' ';
define result/group ' ';
run;

&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 03:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267781#M15794</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-03T03:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Listings with PROC Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267838#M15798</link>
      <description>Thank you. This helps clarify the report procedure a lot for me.</description>
      <pubDate>Tue, 03 May 2016 08:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Listings-with-PROC-Report/m-p/267838#M15798</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2016-05-03T08:19:55Z</dc:date>
    </item>
  </channel>
</rss>

