<?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: Take all cells values from another tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226699#M40834</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;macro "procfreq" always overwrites the dataset work.score&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;And i want to ask you, how can i prevent to macro's&amp;nbsp;overwrite i want to append it row-by-row ?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2015 09:19:10 GMT</pubDate>
    <dc:creator>turcay</dc:creator>
    <dc:date>2015-09-22T09:19:10Z</dc:date>
    <item>
      <title>Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226618#M40809</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;I have a trouble. As you know &amp;nbsp;i have a table which includes Q's and RefId's. I change column's names then i use proc means procedure and &amp;nbsp;find the&amp;nbsp;&lt;SPAN style="font-size: 12.8px;"&gt;Mean Slope Stddev and Center values. Then i&amp;nbsp;try to find score's by using formulas below. The biggest issue is x value has to come from 'table' table for every Q cells. I mean RefID has to&amp;nbsp;include different value for every Q cells then i'll join Score value's again. The table is below which i try to do. I tried to do something but i failed. Could you help me , please ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12.8px;"&gt;&lt;SPAN style="font-size: 12.8px;"&gt;Formula :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&lt;FONT color="#0000ff"&gt;CASE&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;WHEN&lt;/FONT&gt; (Slope*(Center-x))&amp;lt;&lt;STRONG&gt;&lt;FONT color="#008080"&gt;700&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;(&lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;/EXP(Slope*(Center-x))-Mean)/Stddev*&lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;Else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; (&lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;-Mean)/Stddev*&lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table;
length ID $ 7 Q1 8 Q2 8 Q3 8 Q4 8 Q5 8 Q6 8;
infile datalines missover dlm=",";
input ID Q1 Q2 Q3 Q4 Q5 Q6 ;
datalines;
RefID1,0.90,0.80,0.00,0.90,0.00,0.70
RefID2,0.100,0.100,0.00,0.70,0.00,60
RefID3,0.40,0.80,0.00,0.90,0.00,0.50
RefID4,0.55,0.80,0.05,0.90,0.00,0.69
RefID5,0.00,0.80,0.60,0.90,0.20,0.90
RefID6,0.96,0.00,0.40,0.90,0.00,0.95
RefID7,0.00,0.80,0.90,0.90,0.00,0.99
RefID8,0.56,0.80,0.55,0.90,0.00,0.93
RefID9,0.99,0.80,0.99,0.90,0.00,0.70
RefID10,0.89,0.88,0.56,0.90,0.00,0.00
;
data join;
input variable $ percentage;
cards;
Q1 0.9
Q2 0.8
Q4 0.2
Q6 0.5
;
run;
proc sql noprint;
 select cats(variable,'=',variable,'_') into : list separated by ' '
  from join;
quit;
proc datasets library=work nodetails nolist;
 modify table;
 rename &amp;amp;list ;
quit;
proc means data=WORK.table STACKODS
FW=12
     PRINTALLTYPES
     CHARTYPE
     QMETHOD=OS
     VARDEF=DF 
           MEAN 
           STD 
           MODE    
           P10 
           P90 ;
var Q:;
ods output summary=stacked;
run;
proc sql noprint;
create table Q1 as 
select 

B.*,

(CASE WHEN (Slope*(Center-Q1_))&amp;lt;700 Then
(1/EXP(Slope*(Center-Q1_))-Mean)/Stddev*50
Else (0-Mean)/Stddev*50 end) as Q1Score
from 
(select 
Variable, 
Mean, 
StdDev,
(2.95/(((P90-mode)*2+mode)-(mode))) as Slope,
(((P90-mode)*2+mode)-((mode)-(P90-mode)*2)/2) as Center
from work.stacked) as A, table B
where a.Variable="Q1_"
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 12.8px;"&gt;&lt;IMG title="MainTable.png" alt="MainTable.png" src="https://communities.sas.com/t5/image/serverpage/image-id/264i29DB9ADE3C7EAE34/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG title="ResultTable.png" alt="ResultTable.png" src="https://communities.sas.com/t5/image/serverpage/image-id/265i96E70805B1EBCDF4/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Sep 2015 17:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226618#M40809</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-21T17:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226647#M40818</link>
      <description>Try a data step instead of SQL join.</description>
      <pubDate>Mon, 21 Sep 2015 20:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226647#M40818</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-21T20:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226667#M40823</link>
      <description>&lt;P&gt;I guess i'm so close &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let variable=Q:; 

data work.score;
	merge work.stacked work.table;
Slope= 2.95/(((P90-mode)*2+mode)-(mode));
Center=((P90-mode)*2+mode)-((mode)-(P90-mode)*2)/2;
IF (Slope*(Center-Q1_))&amp;lt;700 Then Q1Score=(1/EXP(Slope*(Center-Q1_))-Mean)/Stddev*50;
Else Q1Score=(0-Mean)/Stddev*50;
keep ID &amp;amp;variable Q1Score;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Sep 2015 22:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226667#M40823</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-21T22:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226685#M40825</link>
      <description>&lt;P&gt;I think i&amp;nbsp;need nested IF-ELSE statement and loop for all Q columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let variable=Q:; 
%macro procfreq(Var);
data work.score;
merge work.stacked work.table;
Slope= 2.95/(((P90-mode)*2+mode)-(mode));
Center=((P90-mode)*2+mode)-((mode)-(P90-mode)*2)/2;
&lt;STRONG&gt;IF
(IF (Slope*(Center-Q1))&amp;lt;700 Then Score=(1/EXP(Slope*(Center-Q1))-Mean)/Stddev*50;
Else Score=(0-Mean)/Stddev*50);
ELSE IF
(IF (Slope*(Center-Q1_))&amp;lt;700 Then Score=(1/EXP(Slope*(Center-Q1_))-Mean)/Stddev*50;
Else Score=(0-Mean)/Stddev*50);&lt;/STRONG&gt;keep ID &amp;amp;variable Score ;
run;
%mend;

%macro loop;
%let i=1;
%do %while(%scan(&amp;amp;variable.,&amp;amp;i.,%STR( ))~=);
%procfreq(%scan(&amp;amp;variable.,&amp;amp;i.,%STR( )));
%let i=&amp;amp;i.+1;
%end;
%mend;
%loop;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226685#M40825</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-22T06:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226691#M40830</link>
      <description>&lt;P&gt;Some issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;macro "procfreq" always overwrites the dataset work.score&lt;/LI&gt;&lt;LI&gt;the parameter "Var" is unused&lt;/LI&gt;&lt;LI&gt;replace the "nested" if:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if (Slope*(Center-Q1))&amp;lt;700 then do;
	Score=(1/EXP(Slope*(Center-Q1))-Mean)/Stddev*50;
end;
else do;
	if (Slope*(Center-Q1_))&amp;lt;700 then do;
		Score=(1/EXP(Slope*(Center-Q1_))-Mean)/Stddev*50;
	end;
	else do;
		Score=(0-Mean)/Stddev*50);
	end;
end;

keep ID &amp;amp;variable Score ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;maybe replacing the macro-loop with a datastep array brings you closer to the required output.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226691#M40830</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2015-09-22T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226694#M40831</link>
      <description>&lt;P&gt;I'm trying to do nested if but i didn't succeed. And i changed the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; work.score;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;merge&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; work.table (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = x) work.stacked (&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = y) ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;value=variable;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; x = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Upper=((P90-MODE)/(P90-P10))*Stddev+Mode;&lt;/P&gt;&lt;P&gt;Lower=((Mode-P10)/(P90-P10))*Stddev+Mode;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Center=(Upper+Lower)/&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Slope=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2.95&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;/(Upper-Center);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; value=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Q1'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; valueq=value;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;IF (Slope*(Center-valueq))&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;700&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Score=(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;/EXP(Slope*(Center-valueq))-Mean)/Stddev*&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Score=(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;-Mean)/Stddev*&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ELSE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; value=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Q1_'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Score=value;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IF&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; (Slope*(Center-valueq))&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;700&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Score=(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;/EXP(Slope*(Center-valueq))-Mean)/Stddev*&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Score=(&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;-Mean)/Stddev*&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; ID valueq Score ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226694#M40831</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-22T08:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226696#M40833</link>
      <description>&lt;P&gt;I appreciate that&amp;nbsp;your replying. Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds﻿&lt;/a&gt;. But it didn't work. We have to change location of IF. The biggest problem is we have two Qs.&lt;/P&gt;&lt;P&gt;"Q"s and "Q_"s. First the loop has to&amp;nbsp;check column name. If column name is "Q1"or "Q2" or "Q3" then&amp;nbsp;it will&amp;nbsp;perform&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF (Slope*(Center-Q1))&amp;lt;700 Then
Score=(1/EXP(Slope*(Center-Q1))-Mean)/Stddev*50;
Else Score=(0-Mean)/Stddev*50);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If Column name&amp;nbsp; is "Q1_" or "Q2_" or "Q3_" then it will perform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF (Slope*(Center-Q1_))&amp;lt;700 Then
Score=(1/EXP(Slope*(Center-Q1_))-Mean)/Stddev*50;
Else Score=(0-Mean)/Stddev*50);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I generated a variable. It includes stacked tables variables column values. The values are ("Q1"or "Q1_") and ("Q2" or "Q2_")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So first IF loop will check "value" variable's&amp;nbsp;values then it will perform the formula's.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;value=variable;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Second main problem is if&amp;nbsp;i succeed&amp;nbsp;how can i do this dynamically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope i can understand my aim.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226696#M40833</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-22T08:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226699#M40834</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;macro "procfreq" always overwrites the dataset work.score&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;And i want to ask you, how can i prevent to macro's&amp;nbsp;overwrite i want to append it row-by-row ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 09:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226699#M40834</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-22T09:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226758#M40841</link>
      <description>&lt;P&gt;Have you looked into PROC STDIZE at all?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I don't think your code will do what you want, you merge in data but don't use it.&lt;/P&gt;&lt;P&gt;Please post expected output and the formula's and we can probably help you there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 15:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226758#M40841</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-22T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226843#M40853</link>
      <description>&lt;P&gt;Your description is rather confused.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function vvaluex can often replace macros in simple cases like this where you just want flexibilty on variable names.&lt;/P&gt;&lt;P&gt;Maybe something like this will help, I just take the value of whatever Q variable is there. Please adapt to your needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE1;
  length SLOPE CENTER MEAN STDDEV Q1 Q2 Q3 8; 
run; &lt;BR /&gt;
data HAVE2;
  length SLOPE CENTER MEAN STDDEV Q1_ Q2_ Q3_ 8; 
run;  &lt;BR /&gt;
data WANT;
  if 0 then set HAVE1 HAVE2;
  set HAVE1;
  do COLNB= 1 to 3; 
    COLVAL=coalesce( vvaluex(cats('Q',COLNB)), vvaluex(cats('Q',COLNB,'_')) ) ;
    SCORE=ifn( SLOPE*(CENTER-COLVAL)&amp;lt;700 , (1/EXP(SLOPE*(CENTER-COLVAL))-MEAN)/STDDEV*50
                                         ,                            (0-MEAN)/STDDEV*50 );
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 04:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/226843#M40853</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-09-23T04:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227430#M40979</link>
      <description>&lt;P&gt;Actually, these tables are sample tables. Normally, there are hundreds of Q columns. At the First table, i have&amp;nbsp;an ID column and i have six Q columns without &amp;nbsp;underscore (_). After that columns pass the several conditions(You can assume that “join” tables values passed the condition).If columns values provide this conditions I am adding underscore and overwrite on my main table(“Table”)( as Q1_,Q2_,Q4_,Q6_).Then i find the score results by using formulas. But as you see, i have difficulty figure out how can i develop algorithm to apply formulas both Qs and Q_s. I want to see data sets as follows .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="istenilen.png" alt="istenilen.png" src="https://communities.sas.com/t5/image/serverpage/image-id/325iDEB28CE7BC971A7D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;STRONG&gt;And other columns ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 17:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227430#M40979</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-27T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227444#M40981</link>
      <description>&lt;P&gt;Sorry, clarity hasn't improved at all, for me at least.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2015 23:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227444#M40981</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-09-27T23:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227462#M40990</link>
      <description>&lt;P&gt;Actually i&amp;nbsp;did it what i&amp;nbsp;was trying&amp;nbsp;to do. Maybe you can understand now, what i want to do.Are there any posibilities to get this solution&amp;nbsp;appyling different way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table;
length ID $ 7 Q1 8 Q2 8 Q3 8 Q4 8 Q5 8 Q6 8 Q7 8 Q8 8 Q9 8 Q10 8;
infile datalines missover dlm=",";
input ID Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10;
datalines;
RefID1,0.90,0.80,0.00,0.90,0.00,0.70,0.90,0.70,0.30,0.00
RefID2,0.100,0.100,0.00,0.70,0.00,60,0.20,0.20,0.40,0.80
RefID3,0.40,0.80,0.00,0.90,0.00,0.50,0.10,0.10,0.60,0.90
RefID4,0.55,0.80,0.05,0.90,0.00,0.69,0.40,0.30,0.50,0.99
RefID5,0.00,0.80,0.60,0.90,0.20,0.90,0.50,0.20,0.10,0.80
RefID6,0.96,0.00,0.40,0.90,0.00,0.95,0.20,0.70,0.90,0.87
RefID7,0.00,0.80,0.90,0.90,0.00,0.99,0.10,0.60,0.10,0.99
;
data join;
input variable $ percentage;
cards;
Q1 0.9
Q2 0.8
Q4 0.2
Q6 0.5
;
run;
proc sql noprint;
 select cats(variable,'=',variable,'_') into : list separated by ' '
  from join;
quit;
proc datasets library=work nodetails nolist;
 modify table;
 rename &amp;amp;list ;
quit;
Proc means data=table STACKODS noprint
FW=12
PRINTALLTYPES
CHARTYPE
QMETHOD=OS
VARDEF=DF
	MEAN
	STD
	MODE
	P10
	P90 ;
VAR Q:;
ODS OUTPUT Summary=table2;
run;

proc sql noprint;
select Variable into : list separated by ' '
  from table2;
quit;


%macro soru(Var);

data table;
MERGE table2(in=x) table(in=y);
if y=1;
Upper=((P90-MODE)/(P90-P10))*STDdev+MODE;
Lower=((Mode-P10)/(P90-P10))*STDdev+MODE;
Center=(Upper+Lower)/2;
Slope=2.95/(Upper-Center);

IF (Slope*(Center-&amp;amp;Var))&amp;lt;700 Then Score&amp;amp;Var=(1/(1+EXP(Slope*(Center-&amp;amp;Var)))-Mean)/Stddev*50;
else Score&amp;amp;Var=(0-Mean)/Stddev*50;
if Score&amp;amp;Var = . then Score&amp;amp;Var = 0;
keep ID Q: Score: ;
run;

%mend;

%macro loop;
%let i=1;
%do %while(%scan(&amp;amp;list.,&amp;amp;i.,%STR( ))~=);
%soru(%scan(&amp;amp;list.,&amp;amp;i.,%STR( )));
%let i=&amp;amp;i.+1;
%end;
%mend;

%loop;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 10:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227462#M40990</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-28T10:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227603#M41019</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro soru;

%local i var;

data TABLE;
  merge TABLE2
        TABLE(in=Y);
  if Y;
  UPPER =((P90-MODE)/(P90-P10))*STDDEV+MODE;
  LOWER =((MODE-P10)/(P90-P10))*STDDEV+MODE;
  CENTER=(UPPER+LOWER)/2;
  SLOPE =2.95/(UPPER-CENTER);

%do i=1 %to %sysfunc(countw(&amp;amp;list.,%str( )~=));
  %let var=%scan(&amp;amp;list.,&amp;amp;i.,%str( )~=);
  SCORE&amp;amp;var.= ifn( SLOPE*(CENTER-&amp;amp;var.)&amp;lt;700 , (1/(1+EXP(SLOPE*(CENTER-&amp;amp;var.)))-MEAN)/STDDEV*50
                                            ,                               (0-MEAN)/STDDEV*50 );
  if SCORE&amp;amp;var. = . then SCORE&amp;amp;var. = 0;
%end;

  keep ID Q: SCORE: ;
run;

%mend; 
%soru;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2015 03:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227603#M41019</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-09-29T03:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227628#M41027</link>
      <description>&lt;P&gt;Oh thanks a lot. I'm glad now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 10:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227628#M41027</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-09-29T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Take all cells values from another tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227827#M41093</link>
      <description>&lt;P&gt;Note that when doing the merge&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  merge TABLE2
        TABLE(in=Y);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you are matching one to one, so the shortest table (in terms of number of observations) stops the processing even if the other one is longer.&lt;/P&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;</description>
      <pubDate>Wed, 30 Sep 2015 10:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Take-all-cells-values-from-another-tables/m-p/227827#M41093</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-09-30T10:12:03Z</dc:date>
    </item>
  </channel>
</rss>

