<?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: PROC REPORT: Character variable under ACROSS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67089#M7779</link>
    <description>I tried pasting the results of my code but formatting was messed up.&lt;BR /&gt;
How can I do that?&lt;BR /&gt;
&lt;BR /&gt;
-Bart</description>
    <pubDate>Thu, 11 Mar 2010 16:03:56 GMT</pubDate>
    <dc:creator>bheinsius</dc:creator>
    <dc:date>2010-03-11T16:03:56Z</dc:date>
    <item>
      <title>PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67085#M7775</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
There was another post on this forum concerning this problem but I didn't get the info from it that I wanted, so I try again. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
See the result of the following code:&lt;BR /&gt;
[PRE]&lt;BR /&gt;
proc report data=sashelp.class nowindows;&lt;BR /&gt;
  columns age sex,(name height);&lt;BR /&gt;
  define age /group;&lt;BR /&gt;
  define sex /across;&lt;BR /&gt;
  define name /display;&lt;BR /&gt;
  define height / analysis;&lt;BR /&gt;
run;&lt;BR /&gt;
[/PRE]&lt;BR /&gt;
&lt;BR /&gt;
[PRE]&lt;BR /&gt;
                               Sex                   &lt;BR /&gt;
                      F                    M         &lt;BR /&gt;
        Age  Name         Height  Name         Height&lt;BR /&gt;
         11  Joyce          51.3  Thomas         57.5&lt;BR /&gt;
         12  Jane           59.8                    .&lt;BR /&gt;
             Louise         56.3  James          57.3&lt;BR /&gt;
                               .  John             59&lt;BR /&gt;
                               .  Robert         64.8&lt;BR /&gt;
         13  Alice          56.5                    .&lt;BR /&gt;
             Barbara        65.3  Jeffrey        62.5&lt;BR /&gt;
         14  Carol          62.8                    .&lt;BR /&gt;
             Judy           64.3  Alfred           69&lt;BR /&gt;
                               .  Henry          63.5&lt;BR /&gt;
         15  Janet          62.5                    .&lt;BR /&gt;
             Mary           66.5  Ronald           67&lt;BR /&gt;
                               .  William        66.5&lt;BR /&gt;
         16                    .  Philip           72&lt;BR /&gt;
[/PRE]&lt;BR /&gt;
&lt;BR /&gt;
Why is proc report skipping the lines? And what is the algorithm?&lt;BR /&gt;
&lt;BR /&gt;
The result I'm looking for is like this but with the empty cells shifted up per AGE.&lt;BR /&gt;
&lt;BR /&gt;
-Bart&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: bheinsius&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: bheinsius

Added code results&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: bheinsius</description>
      <pubDate>Thu, 11 Mar 2010 14:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67085#M7775</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2010-03-11T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67086#M7776</link>
      <description>If you are sharing your SAS code (it's unclear, at least to me), suggest you also share a sample of "See the result of the following code".  You can easily paste an example (or code one up) in your reply.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 11 Mar 2010 14:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67086#M7776</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-11T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67087#M7777</link>
      <description>This has always been one of my pet peaves about proc report.  It cannot roll up values unless they are numeric and you use a sum etc.</description>
      <pubDate>Thu, 11 Mar 2010 15:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67087#M7777</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-03-11T15:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67088#M7778</link>
      <description>You will have to roll your own.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sort data=sashelp.class out=class;&lt;BR /&gt;
   by age sex name;&lt;BR /&gt;
   run;&lt;BR /&gt;
data class;&lt;BR /&gt;
   set class;&lt;BR /&gt;
   by age sex name;&lt;BR /&gt;
   if first.sex then index=0;&lt;BR /&gt;
   index + 1;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc report data=class list nowindows;&lt;BR /&gt;
   columns age index sex,(name height);&lt;BR /&gt;
   define age    / group;&lt;BR /&gt;
   define index  / group noprint;&lt;BR /&gt;
   define sex    / across;&lt;BR /&gt;
   define name   / display;&lt;BR /&gt;
   define height / sum;&lt;BR /&gt;
   break after age / skip;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 11 Mar 2010 15:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67088#M7778</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-03-11T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67089#M7779</link>
      <description>I tried pasting the results of my code but formatting was messed up.&lt;BR /&gt;
How can I do that?&lt;BR /&gt;
&lt;BR /&gt;
-Bart</description>
      <pubDate>Thu, 11 Mar 2010 16:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67089#M7779</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2010-03-11T16:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67090#M7780</link>
      <description>That's a great solution for me data _null_, thanks!&lt;BR /&gt;
-Bart</description>
      <pubDate>Thu, 11 Mar 2010 16:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67090#M7780</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2010-03-11T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67091#M7781</link>
      <description>[pre]&lt;BR /&gt;
left square bracket pre right square bracket&lt;BR /&gt;
left square bracket /pre right square bracket&lt;BR /&gt;
[ pre ]&lt;BR /&gt;
code or output goes here&lt;BR /&gt;
[ /pre ]&lt;BR /&gt;
like above with with no spaces&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 11 Mar 2010 16:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67091#M7781</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-03-11T16:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: Character variable under ACROSS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67092#M7782</link>
      <description>Hi:&lt;BR /&gt;
  This forum posting shows how to use the [ and ] brackets with "pre" and "/pre" in order to preserve the indenting in code and logs that you post.&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=27609毙" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=27609毙&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If you were writing HTML (which I know that not everybody does), HTML has &amp;lt;pre&amp;gt; and &amp;lt;/pre&amp;gt; tags to "preserve" code formatting on web pages.&lt;BR /&gt;
&lt;BR /&gt;
But, since the forum application is, itself, an HTML based application, you can't use HTML tags in your posts. So you have to use the same concept but with [ instead of &amp;lt; and with ] instead of &amp;gt; ... if you read the post above, it explains everything.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 11 Mar 2010 17:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-Character-variable-under-ACROSS/m-p/67092#M7782</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-11T17:31:26Z</dc:date>
    </item>
  </channel>
</rss>

