<?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: Changing variable data from . to Zeros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349551#M81087</link>
    <description>&lt;P&gt;This is the entire data file: &amp;nbsp;was just pasting a snippet earlier:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\241\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\241\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\242\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\242\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\240\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\240\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\512\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\512\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\517\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\517\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\523\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\523\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\538\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\538\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\536\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\536\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\542\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\542\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\537\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\537\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\591\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\591\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\563\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\563\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\556\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\556\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\578\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\578\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\576\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\576\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\577\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\577\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\811\3500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\813\506600\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\818\4000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\815\3555100\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\426\3000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\425\3000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\427\2000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\429\2000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\432\50000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\851\0\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\8000\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\825\55400000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\833\500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\4000\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\447\1500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\841\0\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\220\20200\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\245\660000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\246\5000000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\247\2500000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9902\1\\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;infile 'F:\STORAGE\Temp.dat' dlm='\';&lt;BR /&gt;input Year 4-5 Month Day Time X_sum 16-17 ID 18-26 T S Status$ Stortype ItemCode Resp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=Temp nodup;&lt;BR /&gt;by X_sum ID ItemCode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transpose data=Temp out=Stor prefix = Item_;&lt;BR /&gt;by Stortype Fips_sum Poid Year Month;&lt;BR /&gt;var Resp;&lt;BR /&gt;id ItemCode;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 18:02:02 GMT</pubDate>
    <dc:creator>overky</dc:creator>
    <dc:date>2017-04-12T18:02:02Z</dc:date>
    <item>
      <title>Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349494#M81060</link>
      <description>&lt;P&gt;I have a dataset that SAS is adding . form missing data, I run a procedure If X = . then X = 0;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I do a proc transpose I loose the 0 and they are back to .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can a get my final data to out put zeros instead of . for missing data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Cold;&lt;BR /&gt;set raw temp;&lt;BR /&gt;Response = 3;&lt;BR /&gt;if Resp = . then Resp = 0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transpose data=Cold out=ColdStor prefix = Item_;&lt;BR /&gt;by Stortype x_sum ID Year Month;&lt;BR /&gt;var Resp;&lt;BR /&gt;id ItemCode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349494#M81060</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349500#M81064</link>
      <description>&lt;P&gt;I doubt that SAS is converting the zeros&amp;nbsp;into missing ("."). What is likely happening is that you have values for Item_Code that are not present in every combination of "&lt;SPAN&gt;Stortype x_sum ID Year Month" in your by statement. For those cases, there is no value available to transpose, so you end up with "." To fix this, you'll need to do the replacement of "." with "0" after the transpose.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349500#M81064</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-04-12T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349507#M81067</link>
      <description>&lt;P&gt;Post example test data in the form of a datastep, we cannot see what you are working on. &amp;nbsp;SAS will not change 0's to missing, it will populate data that is missing, either through calculation or missing data to .&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349507#M81067</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-12T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349516#M81069</link>
      <description>&lt;P&gt;Do you have sample code?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349516#M81069</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T16:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349517#M81070</link>
      <description>&lt;P&gt;ID &amp;nbsp; &amp;nbsp;X &amp;nbsp; &amp;nbsp; Y &amp;nbsp; Z&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; 7&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 4&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I end up with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp;X &amp;nbsp; &amp;nbsp; Y &amp;nbsp; Z&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; 7&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;. &amp;nbsp; &amp;nbsp; &amp;nbsp; . &amp;nbsp; 4&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; . &amp;nbsp; &amp;nbsp;7&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:34:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349517#M81070</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T16:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349521#M81072</link>
      <description>&lt;P&gt;Without actual data and code, I don't see how you'd go from the first example to the data with missing values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if you have a series of variables and you want to elminate the missing values, you can just do a simple array on them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
array fixme{*} x y z;
do i = 1 to dim(fixme);
fixme(i) = coalesce(fixme(i), 0);
/* OR: if fixme(i) = . then fixme(i) = 0; */
end;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349521#M81072</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-04-12T16:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349524#M81073</link>
      <description>&lt;P&gt;\2017\3\31\000\55999999999\01\01\\A\1\501\0\\&lt;BR /&gt;\2017\3\31\000\55999999999\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\55999999999\01\01\\A\1\701\0\\&lt;BR /&gt;\2017\3\31\000\55999999999\01\01\\A\1\515\0\\&lt;BR /&gt;\2017\3\31\000\55999999999\01\01\\A\1\516\0\\&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;input Year 4-5 Month Day Time X_sum 16-17 ID 18-26 T S Status$ Stortype ItemCode Resp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read in this data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do a proc transpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transpose data=Cold out=Stor prefix = Item_;&lt;BR /&gt;by Stortype X_sum ID Year Month;&lt;BR /&gt;var Resp;&lt;BR /&gt;id ItemCode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get . for missing values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need all missing values to be replaced with zeros not . to read into an antequated software that I do not control the coding for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349524#M81073</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349536#M81079</link>
      <description>&lt;P&gt;Why not post the code you are actually using and the data you are using as a datastep. &amp;nbsp;Its not the best use of our time to decode what you are doing and how from the tiny snippets of information you are posting. &amp;nbsp;For example if you run this code you will have a table with one row and 0's.&lt;/P&gt;
&lt;PRE&gt;data cold;
  infile datalines dlm="\";
  input Year 4-5 Month Day Time X_sum 16-17 ID 18-26 T S Status$ Stortype ItemCode Resp;
datalines;
\2017\3\31\000\55999999999\01\01\\A\1\501\0\\
\2017\3\31\000\55999999999\01\01\\A\1\506\0\\
\2017\3\31\000\55999999999\01\01\\A\1\701\0\\
\2017\3\31\000\55999999999\01\01\\A\1\515\0\\
\2017\3\31\000\55999999999\01\01\\A\1\516\0\\
;
run;
proc transpose data=Cold out=Stor prefix = Item_;
  by Stortype X_sum ID Year Month;
  var Resp;
  id ItemCode;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 17:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349536#M81079</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-12T17:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349550#M81086</link>
      <description>&lt;P&gt;I copied and pasted code that I am using directly from SAS and the data from the datafile. &amp;nbsp;I am not sure what else you are asking me to show or do. &amp;nbsp;I am very basic in my SAS programing knowledge, I have taught myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 17:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349550#M81086</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T17:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349551#M81087</link>
      <description>&lt;P&gt;This is the entire data file: &amp;nbsp;was just pasting a snippet earlier:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\241\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\241\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\242\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\242\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\240\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\240\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\512\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\512\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\517\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\517\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\523\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\523\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\538\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\538\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\536\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\536\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\542\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\542\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\537\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\537\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\591\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\591\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\563\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\563\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\556\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\556\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\578\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\578\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\576\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\576\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\577\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\577\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\811\3500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\813\506600\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\818\4000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\815\3555100\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\426\3000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\425\3000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\427\2000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\429\2000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\432\50000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\851\0\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\8000\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\825\55400000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\833\500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\4000\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\447\1500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\841\0\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\220\20200\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\245\660000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\246\5000000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\247\2500000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9902\1\\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;infile 'F:\STORAGE\Temp.dat' dlm='\';&lt;BR /&gt;input Year 4-5 Month Day Time X_sum 16-17 ID 18-26 T S Status$ Stortype ItemCode Resp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=Temp nodup;&lt;BR /&gt;by X_sum ID ItemCode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transpose data=Temp out=Stor prefix = Item_;&lt;BR /&gt;by Stortype Fips_sum Poid Year Month;&lt;BR /&gt;var Resp;&lt;BR /&gt;id ItemCode;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 18:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349551#M81087</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349570#M81097</link>
      <description>&lt;P&gt;This error is due to missing records&amp;nbsp;in your data, as in lines not existing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you do the TRANSPOSE you don't have records for all of your column headings so SAS converts these values to missing rather than 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to correct it afterwards and set them to 0. SInce you've used a prefix that's hopefully the only variable with this prefix in your data step you can use an array with the short cut colon to reference all variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array myvars(*) temp_:;

do i=1 to dim(myvars);
if myvars(i) = . then myvars(i) = 0;
end;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 19:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349570#M81097</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-12T19:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349573#M81099</link>
      <description>&lt;P&gt;A couple of issues that make it hard to address your questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Your sort does not sort variables in the order required by your transpose.&lt;/P&gt;&lt;P&gt;2. Your transpose uses by variables that are not in your data (&lt;SPAN&gt;Fips_sum Poid).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you supply the code that will run but does not generate the results you expect?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 19:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349573#M81099</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-04-12T19:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349585#M81106</link>
      <description>&lt;P&gt;I apologize... I have to change variable names to post on here for security reasons:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is the entire data file: &amp;nbsp;was just pasting a snippet earlier:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\241\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\241\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\242\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\242\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\240\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\240\0\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\&lt;BR /&gt;\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\506\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\512\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\512\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\517\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\517\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\523\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\523\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\538\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\538\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\536\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\536\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\542\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\542\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\537\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\537\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\591\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\591\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\563\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\563\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\556\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\556\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\578\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\578\0\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\576\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\576\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\577\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\577\500\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\811\3500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\813\506600\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\818\4000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\815\3555100\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\426\3000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\425\3000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\427\2000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\429\2000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\432\50000000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\2000\3\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\851\0\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\8000\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\825\55400000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\833\500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\4000\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\447\1500000\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\841\0\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\27300414340\01\01\\A\1\9902\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\5000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\1000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\7000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\3000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\2000\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\220\20200\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\245\660000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\246\5000000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\247\2500000\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\8000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\4000\3\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9910\032917\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9904\5\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9903\5\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9901\1\\&lt;BR /&gt;\2017\3\31\000\55300628500\01\01\\A\1\9902\1\\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;infile 'F:\STORAGE\Temp.dat' dlm='\';&lt;BR /&gt;input Year 4-5 Month Day Time X_sum 16-17 ID 18-26 T S Status$ Stortype ItemCode Resp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=Temp nodup;&lt;BR /&gt;by X_sum ID ItemCode;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc transpose data=Temp out=Stor prefix = Item_;&lt;BR /&gt;by Stortype X_sum ID Year Month;&lt;BR /&gt;var Resp;&lt;BR /&gt;id ItemCode;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 20:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349585#M81106</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T20:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349612#M81127</link>
      <description>&lt;P&gt;Here's how to post code:&lt;/P&gt;
&lt;PRE&gt;data temp;
   infile datalines dlm='\';
   input Year 4-5 Month Day Time X_sum 16-17 ID 18-26 T S Status$ Stortype ItemCode Resp;
datalines;
\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\742\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\5000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\
\2017\3\31\000\19300400690\01\01\\A\1\786\5000000\\
\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\749\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\1000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\
\2017\3\31\000\19300400690\01\01\\A\1\756\2500000\\
\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\
\2017\3\31\000\19300400690\01\01\\A\1\772\3000000\\
\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\
\2017\3\31\000\19300400690\01\01\\A\1\7000\1\\
\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\
\2017\3\31\000\19300400690\01\01\\A\1\3000\1\\
\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\
\2017\3\31\000\19300400690\01\01\\A\1\2000\1\\
\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\220\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\228\500000\\
\2017\3\31\000\19300400690\01\01\\A\1\241\0\\
\2017\3\31\000\19300400690\01\01\\A\1\241\0\\
\2017\3\31\000\19300400690\01\01\\A\1\242\0\\
\2017\3\31\000\19300400690\01\01\\A\1\242\0\\
\2017\3\31\000\19300400690\01\01\\A\1\240\0\\
\2017\3\31\000\19300400690\01\01\\A\1\240\0\\
\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\
\2017\3\31\000\19300400690\01\01\\A\1\248\20000\\
\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\
\2017\3\31\000\19300400690\01\01\\A\1\246\50000\\
\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\
\2017\3\31\000\19300400690\01\01\\A\1\247\25000\\
\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\
\2017\3\31\000\19300400690\01\01\\A\1\324\250000\\
\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\
\2017\3\31\000\19300400690\01\01\\A\1\320\250000\\
\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\8000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\4000\3\\
\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\
\2017\3\31\000\19300400690\01\01\\A\1\9910\032917\\
\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\
\2017\3\31\000\19300400690\01\01\\A\1\9904\5\\
\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\
\2017\3\31\000\19300400690\01\01\\A\1\9903\5\\
\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\
\2017\3\31\000\19300400690\01\01\\A\1\9901\1\\
\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\
\2017\3\31\000\19300400690\01\01\\A\1\9902\1\\
\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\
\2017\3\31\000\19300400690\01\01\\A\1\9912\\5\
\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\
\2017\3\31\000\19300400700\01\01\\A\1\501\151555\\
\2017\3\31\000\19300400700\01\01\\A\1\506\0\\
\2017\3\31\000\19300400700\01\01\\A\1\506\0\\
\2017\3\31\000\19300400700\01\01\\A\1\512\0\\
\2017\3\31\000\19300400700\01\01\\A\1\512\0\\
\2017\3\31\000\19300400700\01\01\\A\1\517\0\\
\2017\3\31\000\19300400700\01\01\\A\1\517\0\\
\2017\3\31\000\19300400700\01\01\\A\1\523\0\\
\2017\3\31\000\19300400700\01\01\\A\1\523\0\\
\2017\3\31\000\19300400700\01\01\\A\1\538\0\\
\2017\3\31\000\19300400700\01\01\\A\1\538\0\\
\2017\3\31\000\19300400700\01\01\\A\1\536\0\\
\2017\3\31\000\19300400700\01\01\\A\1\536\0\\
\2017\3\31\000\19300400700\01\01\\A\1\542\0\\
\2017\3\31\000\19300400700\01\01\\A\1\542\0\\
\2017\3\31\000\19300400700\01\01\\A\1\537\0\\
\2017\3\31\000\19300400700\01\01\\A\1\537\0\\
\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\
\2017\3\31\000\19300400700\01\01\\A\1\5000\1\\
\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\
\2017\3\31\000\19300400700\01\01\\A\1\547\25975\\
\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\
\2017\3\31\000\19300400700\01\01\\A\1\1000\1\\
\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\
\2017\3\31\000\19300400700\01\01\\A\1\610\50000\\
\2017\3\31\000\19300400700\01\01\\A\1\591\0\\
\2017\3\31\000\19300400700\01\01\\A\1\591\0\\
\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\
\2017\3\31\000\19300400700\01\01\\A\1\553\96700\\
\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\
\2017\3\31\000\19300400700\01\01\\A\1\155\20251\\
\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\
\2017\3\31\000\19300400700\01\01\\A\1\145\20000\\
\2017\3\31\000\19300400700\01\01\\A\1\563\0\\
\2017\3\31\000\19300400700\01\01\\A\1\563\0\\
\2017\3\31\000\19300400700\01\01\\A\1\556\0\\
\2017\3\31\000\19300400700\01\01\\A\1\556\0\\
\2017\3\31\000\19300400700\01\01\\A\1\578\0\\
\2017\3\31\000\19300400700\01\01\\A\1\578\0\\
\2017\3\31\000\19300400700\01\01\\A\1\576\500\\
\2017\3\31\000\19300400700\01\01\\A\1\576\500\\
\2017\3\31\000\19300400700\01\01\\A\1\577\500\\
\2017\3\31\000\19300400700\01\01\\A\1\577\500\\
\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\
\2017\3\31\000\19300400700\01\01\\A\1\571\50000\\
\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\7000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\3000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\2000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\8000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\4000\3\\
\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\
\2017\3\31\000\19300400700\01\01\\A\1\9910\032917\\
\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\
\2017\3\31\000\19300400700\01\01\\A\1\9904\5\\
\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\
\2017\3\31\000\19300400700\01\01\\A\1\9903\5\\
\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\
\2017\3\31\000\19300400700\01\01\\A\1\9901\1\\
\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\
\2017\3\31\000\19300400700\01\01\\A\1\9902\1\\
\2017\3\31\000\27300414340\01\01\\A\1\5000\3\\
\2017\3\31\000\27300414340\01\01\\A\1\1000\3\\
\2017\3\31\000\27300414340\01\01\\A\1\7000\3\\
\2017\3\31\000\27300414340\01\01\\A\1\811\3500000\\
\2017\3\31\000\27300414340\01\01\\A\1\813\506600\\
\2017\3\31\000\27300414340\01\01\\A\1\818\4000000\\
\2017\3\31\000\27300414340\01\01\\A\1\815\3555100\\
\2017\3\31\000\27300414340\01\01\\A\1\3000\3\\
\2017\3\31\000\27300414340\01\01\\A\1\426\3000000\\
\2017\3\31\000\27300414340\01\01\\A\1\425\3000000\\
\2017\3\31\000\27300414340\01\01\\A\1\427\2000000\\
\2017\3\31\000\27300414340\01\01\\A\1\429\2000000\\
\2017\3\31\000\27300414340\01\01\\A\1\432\50000000\\
\2017\3\31\000\27300414340\01\01\\A\1\2000\3\\
\2017\3\31\000\27300414340\01\01\\A\1\851\0\\
\2017\3\31\000\27300414340\01\01\\A\1\8000\1\\
\2017\3\31\000\27300414340\01\01\\A\1\825\55400000\\
\2017\3\31\000\27300414340\01\01\\A\1\833\500000\\
\2017\3\31\000\27300414340\01\01\\A\1\4000\1\\
\2017\3\31\000\27300414340\01\01\\A\1\447\1500000\\
\2017\3\31\000\27300414340\01\01\\A\1\841\0\\
\2017\3\31\000\27300414340\01\01\\A\1\9910\032917\\
\2017\3\31\000\27300414340\01\01\\A\1\9904\5\\
\2017\3\31\000\27300414340\01\01\\A\1\9903\5\\
\2017\3\31\000\27300414340\01\01\\A\1\9901\1\\
\2017\3\31\000\27300414340\01\01\\A\1\9902\1\\
\2017\3\31\000\55300628500\01\01\\A\1\5000\3\\
\2017\3\31\000\55300628500\01\01\\A\1\1000\3\\
\2017\3\31\000\55300628500\01\01\\A\1\7000\3\\
\2017\3\31\000\55300628500\01\01\\A\1\3000\3\\
\2017\3\31\000\55300628500\01\01\\A\1\2000\1\\
\2017\3\31\000\55300628500\01\01\\A\1\220\20200\\
\2017\3\31\000\55300628500\01\01\\A\1\245\660000\\
\2017\3\31\000\55300628500\01\01\\A\1\246\5000000\\
\2017\3\31\000\55300628500\01\01\\A\1\247\2500000\\
\2017\3\31\000\55300628500\01\01\\A\1\8000\3\\
\2017\3\31\000\55300628500\01\01\\A\1\4000\3\\
\2017\3\31\000\55300628500\01\01\\A\1\9910\032917\\
\2017\3\31\000\55300628500\01\01\\A\1\9904\5\\
\2017\3\31\000\55300628500\01\01\\A\1\9903\5\\
\2017\3\31\000\55300628500\01\01\\A\1\9901\1\\
\2017\3\31\000\55300628500\01\01\\A\1\9902\1\\
;
run;

proc sort data=Temp nodup;
   by X_sum ID ItemCode;
run;

proc transpose data=Temp out=Stor prefix = Item_;
   by Stortype X_sum ID Year Month;
   var Resp;
   id ItemCode;
run;&lt;/PRE&gt;
&lt;P&gt;Solutions may be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
   set stor;
   array it Item: ;
   do i = 1 to dim(it);
      if it[i] = . then it[i]=0;
   end;
   drop i;
run;

proc tabulate data=temp;
   class stortype X_sum ID Year Month itemcode;
   var resp;
   table stortype* X_sum* ID* Year *Month ,
         itemcode*resp=''*sum='' *f=best9.
         /misstext='0'
   ;
run;&lt;/PRE&gt;
&lt;P&gt;the first sets the missing to 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you are wanting to generate a report perhaps the proc tabulate will give you clues on where to start without the sort and transpose step.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 21:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349612#M81127</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-12T21:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349620#M81133</link>
      <description>&lt;P&gt;I used proc transpose because I need one id with each item code strung out horizontally rather than stacked vertically. &amp;nbsp;I am not sure on how to use the array with a loop but I will give it a try.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 22:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349620#M81133</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T22:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349621#M81134</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137537"&gt;@overky&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If this is only about printing and not about changing the actual values of missing then use:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options missing='0';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 22:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349621#M81134</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-04-12T22:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing variable data from . to Zeros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349624#M81135</link>
      <description>&lt;P&gt;no I need to change the values because I am exporting the dataset to a .dbf&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 22:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-variable-data-from-to-Zeros/m-p/349624#M81135</guid>
      <dc:creator>overky</dc:creator>
      <dc:date>2017-04-12T22:25:45Z</dc:date>
    </item>
  </channel>
</rss>

