<?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 hide vaue in certain condition case in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414903#M67538</link>
    <description>&lt;P&gt;Thanks Reeza, as you can see on my screenshot in my case, It works for first measure called "ENTREE MENS EN RA" but not for the second "TX SORTIE RA". what I would like is to get measure = ' ' (or test) whenever the genration is not ' '. Thanks a lot&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	PROC REPORT DATA = work.T20_MEASURE_M0 
	(where=(measure like ('%LRA%sans cumul M0'))) missing nowd ;
		column axe_produit generation measure  periode_month_M0 , flag_real_prev , value ;
	define axe_produit / group '' style(column)={FONT_SIZE=11pt background=blue color=white} ;
	define generation / group '' order =  DATA style(column)={CELLWIDTH = 1in FONT_SIZE=11pt} ; 
	define measure / group '' style(column)={CELLWIDTH = 2in FONT_SIZE=11pt} style(header)={CELLWIDTH = 2in} format= $f_measure_label. ;
 		compute measure ;
         If generation ne '' then measure = 'test' ; 
		endcomp ;
	define periode_month_M0 / across '' order =  DATA style(column)={CELLWIDTH = 2in} style (header)={FONT_SIZE=11pt} ;
	define flag_real_prev / '' across format = $ReelPrev. order =  DATA style(column)={CELLWIDTH = 2in} style(header)={CELLWIDTH = 2in FONT_SIZE=11pt background=blue color=white} ;
	define value / '' style(column)={FONT_SIZE=11pt} ;
         compute value ;
         if INDEX(measure,'Mont') then do ;
         call define(_COL_,'FORMAT','12.0') ;
		 call define(_COL_,'STYLE','style={TAGATTR="# ###,###"}') ;
         end;
         else call define(_COL_,'FORMAT','percentn12.2') ;
         endcomp ;
RUN ;&lt;/CODE&gt;&lt;/PRE&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16745i5EC3D9093BD233CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2017 17:27:09 GMT</pubDate>
    <dc:creator>Nasser_DRMCP</dc:creator>
    <dc:date>2017-11-20T17:27:09Z</dc:date>
    <item>
      <title>proc report hide vaue in certain condition case</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414882#M67535</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this proc report, I would like to hide the name whenever the sex is F. how could I do that please ?&lt;/P&gt;&lt;P&gt;only hide the name, not remove the line.&lt;/P&gt;&lt;P&gt;thanks for our help in adance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nasser&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT NOWD DATA=sashelp.class;
   COLUMN  Sex Name Age Height Weight;
   DEFINE  Name / DISPLAY ;
   DEFINE  Sex / DISPLAY  ;
   DEFINE  Age / DISPLAY  ;
   DEFINE  Height / display ;
   DEFINE  Weight /display  ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414882#M67535</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-11-20T16:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc report hide vaue in certain condition case</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414885#M67536</link>
      <description>&lt;P&gt;Use a COMPUTE block to set it to missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT NOWD DATA=sashelp.class;
   COLUMN  Sex Name Age Height Weight;

   compute name;
   if sex='F' then name='';
   endcomp;

   DEFINE  Name / DISPLAY ;
   DEFINE  Sex / DISPLAY  ;
   DEFINE  Age / DISPLAY  ;
   DEFINE  Height / display ;
   DEFINE  Weight /display  ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414885#M67536</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-20T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc report hide vaue in certain condition case</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414886#M67537</link>
      <description>&lt;P&gt;Create a temporary dataset from SASHELP.CLASS where the name is set to missing if the sex is female. Then run PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414886#M67537</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-20T16:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc report hide vaue in certain condition case</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414903#M67538</link>
      <description>&lt;P&gt;Thanks Reeza, as you can see on my screenshot in my case, It works for first measure called "ENTREE MENS EN RA" but not for the second "TX SORTIE RA". what I would like is to get measure = ' ' (or test) whenever the genration is not ' '. Thanks a lot&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	PROC REPORT DATA = work.T20_MEASURE_M0 
	(where=(measure like ('%LRA%sans cumul M0'))) missing nowd ;
		column axe_produit generation measure  periode_month_M0 , flag_real_prev , value ;
	define axe_produit / group '' style(column)={FONT_SIZE=11pt background=blue color=white} ;
	define generation / group '' order =  DATA style(column)={CELLWIDTH = 1in FONT_SIZE=11pt} ; 
	define measure / group '' style(column)={CELLWIDTH = 2in FONT_SIZE=11pt} style(header)={CELLWIDTH = 2in} format= $f_measure_label. ;
 		compute measure ;
         If generation ne '' then measure = 'test' ; 
		endcomp ;
	define periode_month_M0 / across '' order =  DATA style(column)={CELLWIDTH = 2in} style (header)={FONT_SIZE=11pt} ;
	define flag_real_prev / '' across format = $ReelPrev. order =  DATA style(column)={CELLWIDTH = 2in} style(header)={CELLWIDTH = 2in FONT_SIZE=11pt background=blue color=white} ;
	define value / '' style(column)={FONT_SIZE=11pt} ;
         compute value ;
         if INDEX(measure,'Mont') then do ;
         call define(_COL_,'FORMAT','12.0') ;
		 call define(_COL_,'STYLE','style={TAGATTR="# ###,###"}') ;
         end;
         else call define(_COL_,'FORMAT','percentn12.2') ;
         endcomp ;
RUN ;&lt;/CODE&gt;&lt;/PRE&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16745i5EC3D9093BD233CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 17:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414903#M67538</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-11-20T17:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc report hide vaue in certain condition case</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414910#M67539</link>
      <description>&lt;P&gt;In PROC REPORT, order of statements matter. Try moving the COMPUTE before the DEFINE statement, similar to the posted example.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 17:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-hide-vaue-in-certain-condition-case/m-p/414910#M67539</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-20T17:53:04Z</dc:date>
    </item>
  </channel>
</rss>

