<?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: How to produce a report with multi-layer variable information in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693976#M79716</link>
    <description>&lt;P&gt;I am very confused as to why you show what is very obviously the image of a spreadsheet and call it "rtf" output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please pick a way of showing desired output that you can indicate what you want and then indicate where it isn't appearing in the output you have. I'm not sure what you expect where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I doubt that it helps to have "text1" assigned twice.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Oct 2020 08:10:07 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-10-24T08:10:07Z</dc:date>
    <item>
      <title>How to produce a report with multi-layer variable information</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693973#M79715</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Dear All,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;I am having difficult displaying the vis as the top layer of reporting.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Can I please seek you help on this?&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="4"&gt;Thanking you in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;Following is my proc report code.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;proc report data=foo headline headskip spacing=1 split='|' formchar(2)='—' center missing nowindows;
  column vis grp ord _LABEL_ colx coly corr pval;

  define vis   / order order=internal;
  define grp       / order order=internal noprint;
  define ord       / order order=internal noprint;
  define _LABEL_   / display width=55 left "Visit| Variable|   Statistics";
  define colx      / width=15 display center "   Change in x";
  define coly     / width=15 display center "Change in y";
  define corr    / width=15 display center "Pearson coefficient" flow;
  define pval      / width=15 display center "p-value";

  break after grp / skip;

  compute before grp;   
    length text1 $110.;
    if (grp=1) then do; text1="var A"; end;
    if (grp=2) then do; text1="var B"; end;
    if (grp=3) then do; text1="var C"; end;
    if (grp=4) then do; text1="var D"; end;
    line @1 text1 $110.;  
  endcomp;

  compute before VIS;
    length text1 $110.;
    text1=put(VIS,vis_.);
  endcomp;

run;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;The structure of my input data(partial) to proc report is as following.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2020-10-24_13-31-42.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51022i84AA6E72C34C227F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-10-24_13-31-42.png" alt="2020-10-24_13-31-42.png" /&gt;&lt;/span&gt;&lt;/FONT&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my desire report layout in rtf. I used Excel to illustrate my desired rtf layout as it is easier.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2020-10-24_14-03-48.png" style="width: 230px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51023iADCD87222D451ED0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-10-24_14-03-48.png" alt="2020-10-24_14-03-48.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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But my rtf is showing the following layout. I can't get the vis to display properly like the previous screenshot.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2020-10-24_14-07-59.png" style="width: 273px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51025i9B1FD4108C7ABDDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-10-24_14-07-59.png" alt="2020-10-24_14-07-59.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 08:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693973#M79715</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-10-24T08:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to produce a report with multi-layer variable information</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693976#M79716</link>
      <description>&lt;P&gt;I am very confused as to why you show what is very obviously the image of a spreadsheet and call it "rtf" output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please pick a way of showing desired output that you can indicate what you want and then indicate where it isn't appearing in the output you have. I'm not sure what you expect where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I doubt that it helps to have "text1" assigned twice.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 08:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693976#M79716</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-24T08:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to produce a report with multi-layer variable information</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693978#M79717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for quick reply.&lt;BR /&gt;I just used the Excel to illustrate my desired rtf layout as it's easier.&lt;BR /&gt;I am not able to get Month 1, ..., Month n to be displayed.&lt;/P&gt;
&lt;P&gt;For every month, I need to present statistics of every variable.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 08:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/693978#M79717</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-10-24T08:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to produce a report with multi-layer variable information</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/694013#M79723</link>
      <description>&lt;P&gt;I managed to get the desired output after rearranging the input data for proc report.&lt;BR /&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 15:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-produce-a-report-with-multi-layer-variable-information/m-p/694013#M79723</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2020-10-24T15:52:36Z</dc:date>
    </item>
  </channel>
</rss>

