<?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 make a row blank which is consisting integer value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318504#M69795</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define index_char / computed;
compute index_char;
  if index ne 0
  then index_char = put(index,7.2);
  else index_char = " ";
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0rb7cj6wzrl5sn0zelfbg9ngxmv.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0rb7cj6wzrl5sn0zelfbg9ngxmv.htm&lt;/A&gt; and other examples of the report procedure.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2016 10:09:04 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-12-13T10:09:04Z</dc:date>
    <item>
      <title>How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318475#M69780</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a pdf report on sas where some rows are having value with 0.00% or else 0.0000000. The requirement is to make that row blank if the value is 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest me what can be done to solve the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 07:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318475#M69780</guid>
      <dc:creator>PujaDas</dc:creator>
      <dc:date>2016-12-13T07:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318477#M69781</link>
      <description>&lt;P&gt;For display purposes, I would create character variables, and conditionally fill those variables with put() if the value is not zero. Then use the character variables in proc print or whatever.&lt;/P&gt;
&lt;P&gt;In proc report, you can use a compute block to achieve no output when the value is zero.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 07:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318477#M69781</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-13T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318503#M69794</link>
      <description>&lt;P&gt;First of all thnak you for your suggesion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Proc Report I have tried this one :&lt;/P&gt;&lt;P&gt;compute index=0;&lt;/P&gt;&lt;P&gt;if index ^= '0' then do;&lt;/P&gt;&lt;P&gt;if maths='0' and history='0' and science='0'&lt;/P&gt;&lt;P&gt;text ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not working.Can you please help me out with what is the correct one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Puja&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318503#M69794</guid>
      <dc:creator>PujaDas</dc:creator>
      <dc:date>2016-12-13T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318504#M69795</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define index_char / computed;
compute index_char;
  if index ne 0
  then index_char = put(index,7.2);
  else index_char = " ";
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0rb7cj6wzrl5sn0zelfbg9ngxmv.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#p0rb7cj6wzrl5sn0zelfbg9ngxmv.htm&lt;/A&gt; and other examples of the report procedure.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 10:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318504#M69795</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-13T10:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318525#M69801</link>
      <description>I have tried this one. But is not reflected here.&lt;BR /&gt;&lt;BR /&gt;Compute col1_char;&lt;BR /&gt;If index_id ne 0&lt;BR /&gt;Then do;&lt;BR /&gt;If col1='0'&lt;BR /&gt;Then do;&lt;BR /&gt;Col1_char=put(col1,7.2);&lt;BR /&gt;Col1_char=" ";&lt;BR /&gt;Endcomp;&lt;BR /&gt;&lt;BR /&gt;Can you please let me know where i am doing mistake?&lt;BR /&gt;&lt;BR /&gt;The demo report is attached with this.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Tue, 13 Dec 2016 11:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318525#M69801</guid>
      <dc:creator>PujaDas</dc:creator>
      <dc:date>2016-12-13T11:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318526#M69802</link>
      <description>&lt;P&gt;Look at the log!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have do statements without corresponding end statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And stop writing spaghetti code; proper formatting (indentation) makes the logic visible:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute col1_char;
  If index_id ne 0
  then do;
    If col1 = 0 /* assuming col1 is numeric, no quotes! */
    then do;
      col1_char = put(col1,7.2);
    end;
    else do;
      col1_char = " ";
    end;
  end;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 11:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318526#M69802</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-13T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318538#M69806</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yeah sorry i havnt put in with proper indentation.&lt;BR /&gt;&lt;BR /&gt;One thing, here i am trying to put blank whereever the value of the column&lt;BR /&gt;is zero.. so in this case, i feel col1_char=" " should not be in the else&lt;BR /&gt;part. Am i right?&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Tue, 13 Dec 2016 12:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318538#M69806</guid>
      <dc:creator>PujaDas</dc:creator>
      <dc:date>2016-12-13T12:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318542#M69807</link>
      <description>&lt;P&gt;Well, you have to decide about the logic. I just made the process more visible.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318542#M69807</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-13T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a row blank which is consisting integer value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318598#M69822</link>
      <description>&lt;P&gt;One approach that &lt;STRONG&gt;may&lt;/STRONG&gt; work is to use a custom format so that values of 0 display as ' '. However depending on how many columns and ranges of values you are dealing with this could become cumbersome.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-a-row-blank-which-is-consisting-integer-value/m-p/318598#M69822</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-13T15:44:39Z</dc:date>
    </item>
  </channel>
</rss>

