<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378416#M65520</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

proc report data=sashelp.class nowd;
columns name age sex weight height;
define name/display id ;
define age/display  ;
define sex/display ;
define weight/display page;
define height/display;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Jul 2017 14:10:30 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-07-22T14:10:30Z</dc:date>
    <item>
      <title>PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378372#M65514</link>
      <description>&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate a report but my vars exceeds width how to split variables into 2 row.&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data = all4 nowd split = "|" style(report)=[asis=on] nowindows ;&lt;BR /&gt;column paran _NAME_ N_50mg N_100mg N_200mg N_400mg N_600mg N_800mg ;&lt;/P&gt;&lt;P&gt;define paran /order "PK Parameter" format = sch.;&lt;BR /&gt;define _NAME_/ "";&lt;BR /&gt;define N_50mg/ display ;&lt;BR /&gt;define N_100mg/ display ;&lt;BR /&gt;define N_200mg/ display ;&lt;BR /&gt;define N_400mg/ display;&lt;BR /&gt;define N_600mg / display ;&lt;BR /&gt;define N_800mg / display ;&lt;/P&gt;&lt;P&gt;by ppcat avisit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want my output like below...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;page=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;analyte avisit=day1&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;tmax &amp;nbsp; &amp;nbsp;mean&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;N_50mg N_100mg N_200mg&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; min&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;page=2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;analyte avisit=day1&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;tmax &amp;nbsp; &amp;nbsp;mean&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;N_400mg N_600mg N_800mg&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; min&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;basically wanto split vars in to 2 pages and tmax and _name as id vars&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate all your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 03:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378372#M65514</guid>
      <dc:creator>valli</dc:creator>
      <dc:date>2017-07-22T03:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378374#M65515</link>
      <description>&lt;P&gt;Please try this untested code , i used the compute blocks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also to get the variable N_50mg N_100mg N_200mg width incresed in such a way that these variable will fit in one page and next N_400mg N_600mg N_800mg will go to the next page and paran and _name_ are in the id so they will be displayed in both the pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*this is for the line size, it could be change as per your requirement;*/
%let ls=68;
proc report data = all4 nowd split = "|" style(report)=[asis=on] nowindows ;
column avisit paran _NAME_ N_50mg N_100mg N_200mg N_400mg N_600mg N_800mg ;
define avisit/ order 'analyte avisit';
define paran /id order "PK Parameter" format = sch.;
define _NAME_/ id "";
define N_50mg/ display ;
define N_100mg/ display ;
define N_200mg/ display ;
define N_400mg/ display;
define N_600mg / display ;
define N_800mg / display ;
break after avisit / page;
compute before _page_/ left;
line 'analyte avisit: ' avisit;
line &amp;amp;ls.*'_';
line ' ';
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;.&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 03:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378374#M65515</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-07-22T03:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378375#M65516</link>
      <description>hi Jagdesh,&lt;BR /&gt;&lt;BR /&gt;Many thanks for reply.&lt;BR /&gt;&lt;BR /&gt;I tried the code you sent it didnt worked..it is just added one column&lt;BR /&gt;avisit before paran..&lt;BR /&gt;[image: Inline image 2]&lt;BR /&gt;I want to split report after 200mg and my report should generate by ech&lt;BR /&gt;analyte and Day&lt;BR /&gt;&lt;BR /&gt;One more help if possible&lt;BR /&gt;&lt;BR /&gt;for some DAY's I dont have any values for some treatments but whole column&lt;BR /&gt;coming with missing is there anyway to drop those columns automatically&lt;BR /&gt;&lt;BR /&gt;Appreciate your help..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sat, 22 Jul 2017 04:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378375#M65516</guid>
      <dc:creator>valli</dc:creator>
      <dc:date>2017-07-22T04:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378385#M65518</link>
      <description>did you try to increase the width of N_50mg N_100mg N_200mg in a way that these variable will fit in one page and next N_400mg N_600mg N_800mg will go to the next page and paran and _name_ are in the id so they will be displayed in both the pages.&lt;BR /&gt;&lt;BR /&gt;for the other question I think we need to use macro variables which will conditionally check the missing variables and drop them.</description>
      <pubDate>Sat, 22 Jul 2017 06:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378385#M65518</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-07-22T06:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378416#M65520</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

proc report data=sashelp.class nowd;
columns name age sex weight height;
define name/display id ;
define age/display  ;
define sex/display ;
define weight/display page;
define height/display;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Jul 2017 14:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/378416#M65520</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-22T14:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379309#M65567</link>
      <description>&lt;P&gt;Many thanks ..is there anyway populate only columns which hase values?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 09:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379309#M65567</guid>
      <dc:creator>valli</dc:creator>
      <dc:date>2017-07-26T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379336#M65568</link>
      <description>&lt;P&gt;If I understood your question correctly. Try nozero option.&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;
&lt;BR /&gt;&lt;BR /&gt;data class;&lt;BR /&gt;&amp;nbsp;set sashelp.class;&lt;BR /&gt;&amp;nbsp;call missing(age);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc report data=class nowd;&lt;BR /&gt;columns name age sex weight height;&lt;BR /&gt;define name/display&amp;nbsp; ;&lt;BR /&gt;define age/display&amp;nbsp; nozero;&lt;BR /&gt;define sex/display nozero;&lt;BR /&gt;define weight/display&amp;nbsp; nozero;&lt;BR /&gt;define height/display nozero;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379336#M65568</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-26T11:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379339#M65569</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;variable having missing or blank values when doing by day .&lt;/P&gt;&lt;P&gt;nozero now working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose on day1 I have values for 50mg 100mg 200mg&amp;nbsp;600mg&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;where ason day21&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;have values for 50mg&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;600mg but in report 10mmg and 200mg coming with blank values''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;valli&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379339#M65569</guid>
      <dc:creator>valli</dc:creator>
      <dc:date>2017-07-26T11:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379342#M65570</link>
      <description>&lt;P&gt;Sorry. Start a new session. Let other people see it. I can't understand your Q .&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Report/m-p/379342#M65570</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-26T11:47:09Z</dc:date>
    </item>
  </channel>
</rss>

