<?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: Producing a report one observation per page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234283#M14648</link>
    <description>&lt;P&gt;Are you sure you are not thinking about PROC FSEDIT with the PRINTALL option?&lt;/P&gt;
&lt;P&gt;Or if you do not have that licensed just use a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
&amp;nbsp; &amp;nbsp;file print ;
&amp;nbsp; set sashelp.class ;
&amp;nbsp; put (_all_) (=/);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Nov 2015 20:31:18 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-11-11T20:31:18Z</dc:date>
    <item>
      <title>Producing a report one observation per page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234266#M14645</link>
      <description>&lt;P&gt;I vaguely remember by using &lt;STRONG&gt;Proc Report&lt;/STRONG&gt; we can produce a report with all variables listed vertically for each of the observations in the dataset, but I couldnt remember the syntax for that. Could someone kindly remind me the syntax?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if I have a data set with the following observations&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name &amp;nbsp; Sex &amp;nbsp; Age&lt;/P&gt;
&lt;P&gt;John &amp;nbsp; &amp;nbsp; M &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;
&lt;P&gt;Max &amp;nbsp; &amp;nbsp; &amp;nbsp;M &amp;nbsp; &amp;nbsp; &amp;nbsp;56&lt;/P&gt;
&lt;P&gt;Ann &amp;nbsp; &amp;nbsp; &amp;nbsp; F &amp;nbsp; &amp;nbsp; &amp;nbsp;19&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to have a report displayed this way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: John&lt;/P&gt;
&lt;P&gt;Sex: &amp;nbsp; &amp;nbsp; M&lt;/P&gt;
&lt;P&gt;Age: &amp;nbsp; &amp;nbsp; 30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: &amp;nbsp;Max&lt;/P&gt;
&lt;P&gt;Sex: &amp;nbsp; &amp;nbsp; &amp;nbsp;M&lt;/P&gt;
&lt;P&gt;Age: &amp;nbsp; &amp;nbsp; &amp;nbsp;56&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name: &amp;nbsp; Ann&lt;/P&gt;
&lt;P&gt;Sex: &amp;nbsp; &amp;nbsp; &amp;nbsp; F&lt;/P&gt;
&lt;P&gt;Age: &amp;nbsp; &amp;nbsp; &amp;nbsp;19&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 19:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234266#M14645</guid>
      <dc:creator>JerryW</dc:creator>
      <dc:date>2015-11-11T19:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a report one observation per page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234277#M14646</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option nodate;
ods pdf file='c:\temp\test.pdf' ;
title "";
proc report data=sashelp.class(obs=3) nowd headline headskip;
define name/group ;
break after name/ page;
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2015 20:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234277#M14646</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-11-11T20:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a report one observation per page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234279#M14647</link>
      <description>&lt;P&gt;Thank you, but this would still list the variables as columns , not vertically as shown in the example, right?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 20:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234279#M14647</guid>
      <dc:creator>JerryW</dc:creator>
      <dc:date>2015-11-11T20:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a report one observation per page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234283#M14648</link>
      <description>&lt;P&gt;Are you sure you are not thinking about PROC FSEDIT with the PRINTALL option?&lt;/P&gt;
&lt;P&gt;Or if you do not have that licensed just use a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
&amp;nbsp; &amp;nbsp;file print ;
&amp;nbsp; set sashelp.class ;
&amp;nbsp; put (_all_) (=/);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2015 20:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234283#M14648</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-11-11T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a report one observation per page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234307#M14651</link>
      <description>&lt;P&gt;There are too many steps, I believe there is simple way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=temp;
by name;
run;

proc transpose data=temp out=temp1;
by name;
var name--age;
run;

data want;
  set temp1;
  if mod(_n_,3)=1 then k+1;
  flag=k;
  Name=cats(_name_,':');
  keep flag name col1;
run;


proc report data=want(obs=3) nowd headskip headline noheader;
define flag/order noprint;
break after flag/page;
run&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2015 23:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-a-report-one-observation-per-page/m-p/234307#M14651</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-11-11T23:21:22Z</dc:date>
    </item>
  </channel>
</rss>

