<?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 with The column that may disappear in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429979#M27732</link>
    <description>&lt;P&gt;Thanks for the reply and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the problem: data can either contain or not contain a specific column (for example 'www').&lt;/P&gt;&lt;P&gt;If data contain this coumn - everything is ok, if not -&amp;nbsp;the entire table&amp;nbsp;disappears from the report completely.&lt;/P&gt;&lt;P&gt;Then I change in "Define" point&amp;nbsp; Display -&amp;gt;&amp;nbsp;EXCLUSIVE and it works, but there is no lable, only name of the table.&lt;/P&gt;&lt;PRE&gt;proc report data=work.sorttemptablesorted
      style(column)=[font_style=roman font_width=normal textalign=center fontsize=7pt]
      style(head)=[foreground=black font_weight=bold font_style=roman fontsize=7pt textalign=center width=100pt background=#afdafc verticalalign=center] missing;
  by channel;
  format count_of_com email sms www more_then_1 nlnum10.;
  column channel count_of_com email sms www more_then_1;
  define channel      / "Канал" order noprint;
  define count_of_com / "Количество коммуникаций" display style(header)=[width=75pt];
  define email        / "Игроков с коммуникациями по Email" display style(header)=[width=75pt];
  define sms          / "Игроков с коммуникациями по SMS" display style(header)=[width=75pt];
  define www          / "Игроков с коммуникациями по WWW" &lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;EXCLUSIVE&lt;/SPAN&gt;&lt;/FONT&gt; style(header)=[width=75pt];
  define more_then_1  / "Из них получили коммуникацию более чем в одном канале" display style(header)=[width=75pt];

  compute before _page_ / center style=[font_weight=bold foreground=black background= #afdafc fontsize=8pt];
    pgstr = catx(' ',channel);
    line pgstr $varying100.;
  endcomp;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 13:36:52 GMT</pubDate>
    <dc:creator>DavidBesaev</dc:creator>
    <dc:date>2018-01-23T13:36:52Z</dc:date>
    <item>
      <title>PROC Report with The column that may disappear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429960#M27727</link>
      <description>&lt;P&gt;Hi! Need your help! I have a table, where some columns can be or&amp;nbsp;disappear after TRANSSPLITCOLUMNS, it,s automatic report and if some column are dissapear, then the report is not working correctly.&lt;/P&gt;&lt;P&gt;hear example of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC Report DATA=WORK.SORTTempTableSorted&lt;BR /&gt;style(column)=[font_style=Roman font_width=normal TEXTALIGN=CENTER FONTSIZE=7pt]&lt;BR /&gt;style(head)=[foreground=black font_weight=bold font_style=Roman FONTSIZE=7pt TEXTALIGN=CENTER width=100pt background=#afdafc VERTICALALIGN=center] missing;&lt;BR /&gt;BY CHANNEL;&lt;BR /&gt;options label;&lt;BR /&gt;label channel="Канал" COUNT_OF_COM="Количество коммуникаций" EMAIL="Игроков с коммуникациями по Email" SMS="Игроков с коммуникациями по SMS" WWW="Игроков с коммуникациями по WWW" MORE_THEN_1 = "Из них получили коммуникацию более чем в одном канале";&lt;BR /&gt;format COUNT_OF_COM EMAIL SMS WWW MORE_THEN_1 nlnum10.;&lt;BR /&gt;column channel COUNT_OF_COM EMAIL SMS WWW MORE_THEN_1 ;&lt;BR /&gt;DEFINE CHANNEL / order noprint;&lt;BR /&gt;DEFINE COUNT_OF_COM / display style(header)=[width=75pt] ;&lt;BR /&gt;DEFINE EMAIL / display style(header)=[width=75pt] ;&lt;BR /&gt;DEFINE SMS / display style(header)=[width=75pt] ;&lt;BR /&gt;DEFINE WWW / display style(header)=[width=75pt] ;&lt;BR /&gt;DEFINE MORE_THEN_1 / display style(header)=[width=75pt] ;&lt;BR /&gt;compute before _page_ / center style=[font_weight=bold foreground=black background= #afdafc FONTSIZE=8pt];&lt;BR /&gt;pgstr = catx(' ',channel);&lt;BR /&gt;line pgstr $varying100.;&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I add something in the code below with no column printed the report without the column, as in proc print?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429960#M27727</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2018-01-23T12:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report with The column that may disappear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429967#M27728</link>
      <description>I change "display" to "EXCLUSIVE" and it works, BUT label doesn't work. What i can to do?</description>
      <pubDate>Tue, 23 Jan 2018 13:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429967#M27728</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2018-01-23T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report with The column that may disappear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429968#M27729</link>
      <description>&lt;P&gt;Firstly we need to know what is "not working"?&amp;nbsp; What happens and what do you expect to happen?&amp;nbsp; If its just the data doesn't contain the variables you expect, then first there is a problem with previous code - fix it there.&amp;nbsp; You cuold patch it by creating an empty dataset with all the columns and setting these two together.&amp;nbsp; Also, code formatting is very important for readability, you can use the {i} code windows (just above post area) to preserve formatting:&lt;/P&gt;
&lt;PRE&gt;proc report data=work.sorttemptablesorted
      style(column)=[font_style=roman font_width=normal textalign=center fontsize=7pt]
      style(head)=[foreground=black font_weight=bold font_style=roman fontsize=7pt textalign=center width=100pt background=#afdafc verticalalign=center] missing;
  by channel;
  format count_of_com email sms www more_then_1 nlnum10.;
  column channel count_of_com email sms www more_then_1;
  define channel      / "Канал" order noprint;
  define count_of_com / "Количество коммуникаций" display style(header)=[width=75pt];
  define email        / "Игроков с коммуникациями по Email" display style(header)=[width=75pt];
  define sms          / "Игроков с коммуникациями по SMS" display style(header)=[width=75pt];
  define www          / "Игроков с коммуникациями по WWW" display style(header)=[width=75pt];
  define more_then_1  / "Из них получили коммуникацию более чем в одном канале" display style(header)=[width=75pt];

  compute before _page_ / center style=[font_weight=bold foreground=black background= #afdafc fontsize=8pt];
    pgstr = catx(' ',channel);
    line pgstr $varying100.;
  endcomp;
run;&lt;/PRE&gt;
&lt;P&gt;Note I moved the labels for clarity.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429968#M27729</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-23T13:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report with The column that may disappear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429979#M27732</link>
      <description>&lt;P&gt;Thanks for the reply and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the problem: data can either contain or not contain a specific column (for example 'www').&lt;/P&gt;&lt;P&gt;If data contain this coumn - everything is ok, if not -&amp;nbsp;the entire table&amp;nbsp;disappears from the report completely.&lt;/P&gt;&lt;P&gt;Then I change in "Define" point&amp;nbsp; Display -&amp;gt;&amp;nbsp;EXCLUSIVE and it works, but there is no lable, only name of the table.&lt;/P&gt;&lt;PRE&gt;proc report data=work.sorttemptablesorted
      style(column)=[font_style=roman font_width=normal textalign=center fontsize=7pt]
      style(head)=[foreground=black font_weight=bold font_style=roman fontsize=7pt textalign=center width=100pt background=#afdafc verticalalign=center] missing;
  by channel;
  format count_of_com email sms www more_then_1 nlnum10.;
  column channel count_of_com email sms www more_then_1;
  define channel      / "Канал" order noprint;
  define count_of_com / "Количество коммуникаций" display style(header)=[width=75pt];
  define email        / "Игроков с коммуникациями по Email" display style(header)=[width=75pt];
  define sms          / "Игроков с коммуникациями по SMS" display style(header)=[width=75pt];
  define www          / "Игроков с коммуникациями по WWW" &lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;EXCLUSIVE&lt;/SPAN&gt;&lt;/FONT&gt; style(header)=[width=75pt];
  define more_then_1  / "Из них получили коммуникацию более чем в одном канале" display style(header)=[width=75pt];

  compute before _page_ / center style=[font_weight=bold foreground=black background= #afdafc fontsize=8pt];
    pgstr = catx(' ',channel);
    line pgstr $varying100.;
  endcomp;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429979#M27732</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2018-01-23T13:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report with The column that may disappear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429981#M27734</link>
      <description>&lt;P&gt;The first I would check why the steps before this are creating data which doesn't conform to what you expect for the report - that could be an issue in itself.&amp;nbsp; As I said you could fudge it - its not ideal but:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table tmp (channel char(200),count_of_com char(200),email char(200),sms char(200),www char(200),more_than_1 char(200));
quit;

data yourdata;
  set tmp yourdata;
run;&lt;/PRE&gt;
&lt;P&gt;This will create an empty dataset with all the required varaibles, and padd out the data with all variables.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429981#M27734</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-23T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report with The column that may disappear</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429990#M27735</link>
      <description>&lt;P&gt;Thank you very much! Now it work perfectly&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 14:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PROC-Report-with-The-column-that-may-disappear/m-p/429990#M27735</guid>
      <dc:creator>DavidBesaev</dc:creator>
      <dc:date>2018-01-23T14:15:29Z</dc:date>
    </item>
  </channel>
</rss>

