<?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: Transform . to 0 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309688#M20876</link>
    <description>&lt;P&gt;The string that is displayed for a numeric missing value can be changed through the system option missing=, like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing='0';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to actually change your missing numeric values to 0, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set test;
array _nums {*} _numeric_;
do _i = 1 to dim(_nums);
  if _nums{_i} = . then _nums{_i} = 0;
end;
drop _i;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS I (and most others here) willl not (or even cannot) open a MS Office document from the web, for security reasons. Post program code as text, using the {i} or "little running man" icons.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 11:44:31 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-11-07T11:44:31Z</dc:date>
    <item>
      <title>Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309686#M20875</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find a doc where i get missing values in '.' or 'i want '.' instead. What do I have to do please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309686#M20875</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-07T11:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309688#M20876</link>
      <description>&lt;P&gt;The string that is displayed for a numeric missing value can be changed through the system option missing=, like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing='0';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to actually change your missing numeric values to 0, do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set test;
array _nums {*} _numeric_;
do _i = 1 to dim(_nums);
  if _nums{_i} = . then _nums{_i} = 0;
end;
drop _i;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS I (and most others here) willl not (or even cannot) open a MS Office document from the web, for security reasons. Post program code as text, using the {i} or "little running man" icons.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309688#M20876</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-07T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309693#M20877</link>
      <description>&lt;P&gt;Thnak you kurt :&lt;/P&gt;&lt;P&gt;1) sorry for the document&lt;/P&gt;&lt;P&gt;2) how do i do this?&lt;/P&gt;&lt;P&gt;The string that is displayed for a numeric missing value can be changed through the system option missing=, like&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;options&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;missing&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'0'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;3) where do I put this ? in the program code that ii send you? My level is very low in program&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; test&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; test&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token statement"&gt;array&lt;/SPAN&gt; _nums &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; _numeric_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;do _i &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; to &lt;SPAN class="token function"&gt;dim&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;_nums&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; _nums&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;_i&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; _nums&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;_i&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;end&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token keyword"&gt;drop&lt;/SPAN&gt; _i&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309693#M20877</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-07T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309694#M20878</link>
      <description>&lt;P&gt;Post your program code, and I'll be able to show you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309694#M20878</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-07T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309706#M20879</link>
      <description>&lt;P&gt;You can use PROC STDIZE (for "standardize") to convert all missing values ('.') to zero.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc stdize 
   data=WORK.QUERY_FOR_QUERY_CREES_CHALONS_CA 
   out=work.now_zeros
   reponly 
   missing=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Then use&amp;nbsp;&lt;STRONG&gt;work.now_zeros&lt;/STRONG&gt; in your PROC REPORT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;More in &lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-to-set-all-missing-values-to-zero-for-all-variables/td-p/41478" target="_self"&gt;this solved discussion&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309706#M20879</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-11-07T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309709#M20880</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;TITLE1 "Rapport sous forme de liste";
FOOTNOTE1 "Généré par le Système SAS (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) le %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) à %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";

proc report data=WORK.QUERY_FOR_QUERY_CREES_CHALONS_CA nowd;
	column 'Libellé canal physique'n 'Créés'n, SUM='Créés_SUM'n 'Traités'n, SUM='Traités_SUM'n 'Taux de traitement'n, SUM='Taux de traitement_SUM'n Abandons, SUM=Abandons_SUM 'Taux d''abandon'n, SUM='Taux d''abandon_SUM'n 'A faire'n, SUM='A faire_SUM'n Stocks, SUM=Stocks_SUM Instances, SUM=Instances_SUM 'Total de A TRAITER'n, SUM='Total de A TRAITER_SUM'n;
	define 'Libellé canal physique'n / group 'Libellé canal physique' format=$CHAR17. missing order=formatted;
	compute 'Libellé canal physique'n;
		if 'Libellé canal physique'n ne ' ' then hold1='Libellé canal physique'n;
		if 'Libellé canal physique'n eq ' ' then 'Libellé canal physique'n=hold1;
	endcomp;
	define 'Créés'n / analysis SUM 'Créés' missing;
	define 'Traités'n / analysis SUM 'Traités' missing;
	define 'Taux de traitement'n / analysis SUM 'Taux de traitement' format=NLPCTI6. missing;
	define 'Taux de traitement_SUM'n / format=NLPCTI6.;
	define Abandons / analysis SUM 'Abandons' missing;
	define 'Taux d''abandon'n / analysis SUM "Taux d'abandon" format=NLPCTI6. missing;
	define 'Taux d''abandon_SUM'n / format=NLPCTI6.;
	define 'A faire'n / analysis SUM 'A faire' missing;
	define Stocks / analysis SUM 'Stocks' missing;
	define Instances / analysis SUM 'Instances' missing;
	define 'Total de A TRAITER'n / analysis SUM 'Total de A TRAITER' format=NLNUM8. missing;
	define 'Total de A TRAITER_SUM'n / format=NLNUM8.;
	run;
	quit;
TITLE; FOOTNOTE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For Kuurt thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309709#M20880</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-07T12:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309711#M20881</link>
      <description>&lt;P&gt;Thank you Chris, but it's the same problem that with the Kurt solution..where do I put it in the program? sorry:)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309711#M20881</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-07T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309712#M20882</link>
      <description>&lt;P&gt;It's a simple run of one procedure, so add my code right before this. In the case of the data step replace "test" with your&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;QUERY_FOR_QUERY_CREES_CHALONS_CA&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;or use &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt;'s example on your dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309712#M20882</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-07T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309717#M20883</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
   CREATE TABLE WORK.QUERY_FOR_QUERY_CREES_CHALONS_CA(label="QUERY_FOR_QUERY_CREES_CHALONS_CANAUX") AS 
   SELECT t1.'Libellé canal physique'n, 
          t1.'COUNT_of_Libellé canal physique'n AS 'Créés'n, 
          t4.'COUNT_of_Libellé canal physique'n AS 'Traités'n, 
          /* Taux de traitement */
            (t4.'COUNT_of_Libellé canal physique'n/t1.'COUNT_of_Libellé canal physique'n) FORMAT=NLPCTI6. AS 
            'Taux de traitement'n, 
          t3.'COUNT_of_Libellé canal physique'n AS Abandons, 
          /* Taux d'abandon */
            (t3.'COUNT_of_Libellé canal physique'n/t1.'COUNT_of_Libellé canal physique'n) FORMAT=NLPCTI6. AS 
            'Taux d''abandon'n, 
          t2.'COUNT_of_Libellé canal physique'n FORMAT=BEST11. AS 'A faire'n, 
          t5.'COUNT_of_Libellé canal physique'n AS Stocks, 
          t6.'COUNT_of_Libellé canal physique'n AS Instances, 
          /* Total de A TRAITER */
            (t2.'COUNT_of_Libellé canal physique'n+t5.'COUNT_of_Libellé canal physique'n+t6.
            'COUNT_of_Libellé canal physique'n) FORMAT=NLNUM8. AS 'Total de A TRAITER'n
      FROM WORK.QUERY_CREES_CHALONS_CANAUX t1
           LEFT JOIN WORK.QUERY_AFAIRE_CANAUX_CHALONS t2 ON (t1.'Libellé canal physique'n = t2.'Libellé canal physique'n
          )
           INNER JOIN WORK.QUERY_ABANDON_CANAUX_CHALONS t3 ON (t1.'Libellé canal physique'n = t3.
          'Libellé canal physique'n)
           INNER JOIN WORK.QUERY_TRAITES_CANAUX_CHALONS t4 ON (t1.'Libellé canal physique'n = t4.
          'Libellé canal physique'n)
           INNER JOIN WORK.QUERY_STOCK_CANAUX_CHALONS t5 ON (t1.'Libellé canal physique'n = t5.'Libellé canal physique'n
          )
           LEFT JOIN WORK.QUERY_INSTANCE_CHALONS_CANAUX t6 ON (t1.'Libellé canal physique'n = t6.
          'Libellé canal physique'n);
		  options missing='0';
QUIT;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;, I put the "option missing" and it gives me 0 in the colum A faire. But it gives me 0 in the column "Total de A Traiter" which is the sum of "A faire" + "Stcok"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try the program from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt;&amp;nbsp;and it's OK the sum&amp;nbsp;"Total a traiter" is OK.&lt;/P&gt;&lt;P&gt;Thank you a lot to&amp;nbsp;both of you for the next calcul i will use Chris code!&lt;/P&gt;&lt;P&gt;And sorry for my level of english and sas programmation..I'm just a franch novice:)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309717#M20883</guid>
      <dc:creator>peter2</dc:creator>
      <dc:date>2016-11-07T13:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transform . to 0</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309719#M20884</link>
      <description>&lt;P&gt;options missing just changes the &lt;U&gt;display&lt;/U&gt; of missing values. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt;'s example and my data step change the actual &lt;U&gt;values&lt;/U&gt; in the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, when only the display is changed, the values are still missing values, and a basic mathematical operation that involves one of those values will result in another missing value, even when the other variables are non-missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the &lt;U&gt;values&lt;/U&gt; are changed to zero, all calculations start to work.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transform-to-0/m-p/309719#M20884</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-07T13:26:56Z</dc:date>
    </item>
  </channel>
</rss>

