<?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 transpose in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616779#M180631</link>
    <description>&lt;P&gt;Thank you so much. You've helped me.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jan 2020 12:37:04 GMT</pubDate>
    <dc:creator>ZaneleD</dc:creator>
    <dc:date>2020-01-12T12:37:04Z</dc:date>
    <item>
      <title>proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616405#M180448</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc transpose, how can I make it to put zeros where there is no observation for the variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 10:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616405#M180448</guid>
      <dc:creator>ZaneleD</dc:creator>
      <dc:date>2020-01-10T10:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616413#M180451</link>
      <description>&lt;P&gt;Please post the code you are using and the data as data-step with datalines, so that we see what you have, then explain what you want/need.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 10:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616413#M180451</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-01-10T10:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616449#M180469</link>
      <description>&lt;P&gt;Is this what you're looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id value;
datalines;
1 2
1 .
1 3
3 4
5 6
7 8
2 .
3 .
5 0
9 .
;

proc sort data=have;
by id;
run;

proc transpose data=have out=have_2 (drop=_NAME_) prefix=value;
by id;
var value;
run;

data want (drop=i);
set have_2;
array val [*] value:;
do i = 1 to dim(val);
	if val[i] = . then val[i] = 0;
end;
run;
	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It's a bit unclear what you mean by "no observation" for the variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 13:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616449#M180469</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2020-01-10T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616672#M180559</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id value;
datalines;
1 2
1 .
1 3
3 4
5 6
7 8
2 .
3 .
5 0
9 .
;

proc sort data=have;
by id;
run;

proc transpose data=have out=have_2 (drop=_NAME_) prefix=value;
by id;
var value;
run;
proc stdize data=have_2 out=want reponly missing=0;
var _numeric_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Jan 2020 11:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616672#M180559</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-01-11T11:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616779#M180631</link>
      <description>&lt;P&gt;Thank you so much. You've helped me.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 12:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-transpose/m-p/616779#M180631</guid>
      <dc:creator>ZaneleD</dc:creator>
      <dc:date>2020-01-12T12:37:04Z</dc:date>
    </item>
  </channel>
</rss>

