<?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: Building master table with input from multiple tables - Part2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230493#M41803</link>
    <description>&lt;P&gt;If I get it right, you don't want to read in the &lt;EM&gt;_pre&lt;/EM&gt; datasets when creating dataset &lt;EM&gt;all&lt;/EM&gt;. So, create your summary datasets with a different prefix and read only those when creating &lt;EM&gt;all&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Oct 2015 18:53:50 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-10-18T18:53:50Z</dc:date>
    <item>
      <title>Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230459#M41790</link>
      <description>&lt;P&gt;I had a problem before, and I got a solution to that. The solution was working fine, and now there is some more problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I am opening a new thread on the old with a version number, as I marked the last problem as 'solved' .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Original Problem:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some 40 variables, on which I have to perform 10 different data quality (Null, zero value, length, validity of date..) checks. And I am generating one table for each&amp;nbsp; 1Var * 1 DQ check, resulting in 100 tables. Each table will hold just a control total, i.e. count of distinct value for a variable.&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;create table DQ_Check_Zero_Var1 as&lt;BR /&gt;select count(distinct Var1) as Count_Zero from Source_table;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I would like to create a master table in this format. Each cell will hold the only value from the corresponding table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;BR /&gt;&amp;nbsp;Check_Zero&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (number)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (number)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (number)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (number)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (number)&lt;/P&gt;
&lt;P&gt;Check_Null&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To this, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; has provided an appropriate solution. Below is the entire solution he had provided and the original link to the post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(Link - &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Building-master-table-with-input-from-multiple-tables/m-p/229597#M33708)" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Building-master-table-with-input-from-multiple-tables/m-p/229597#M33708)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I assumed that your datasets have names like DQ_Check_Stat_Var where Stat is the name of the statistic and Var is the name of the variable&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;create table DQ_Check_N_height as &lt;BR /&gt;select count(height) as Count_Not_Null from SasHelp.class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;create table DQ_Check_N_weight as &lt;BR /&gt;select count(weight) as Count_Not_Null from SasHelp.class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;create table DQ_Check_Range_height as &lt;BR /&gt;select range(height) as Range from SasHelp.class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;Proc sql;&lt;BR /&gt;create table DQ_Check_Range_weight as &lt;BR /&gt;select range(weight) as Range from SasHelp.class;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;data all;&lt;BR /&gt;set DQ_Check_: INDSNAME=ds;&lt;BR /&gt;length var Stat $32;&lt;BR /&gt;var = propcase(scan(ds, -1, "_"));&lt;BR /&gt;stat = propcase(scan(ds, -2, "_"));&lt;BR /&gt;value = coalesce(of _numeric_);&lt;BR /&gt;keep var stat value;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sort data=all; by stat var; run;&lt;BR /&gt;&lt;BR /&gt;proc transpose data=all out=want( drop=_: );&lt;BR /&gt;by stat;&lt;BR /&gt;id var;&lt;BR /&gt;var value;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=want noobs; run;&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;
&lt;P&gt;&lt;STRONG&gt;New Problem and Error:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data DQ_Stat_Var(n)_Pre;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set Source_Table;&lt;/P&gt;
&lt;P&gt;&amp;lt;conditons...&amp;gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Note: Since variable names are quite long, to keep track which var I am working on, I have taken first 6 characters from variable names and attached each with a sequence number generated with _n_ option. There is no underscore between Var and number. I also made sure that no generated dataset names are more 32 characters)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;BR /&gt;create table DQ_Stat_Var(n) as&lt;BR /&gt;select count(distinct Var) as Cnt from DQ_Stat_Var(n)_Pre;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After all the datasets are generated, I use this proposed code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data all;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set DQ_Check_: INDSNAME=ds;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length var Stat $32;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var = propcase(scan(ds, -1, "_"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stat = propcase(scan(ds, -2, "_"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = coalesce(of _numeric_);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep var stat value;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And now I get this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data All;&lt;/P&gt;
&lt;P&gt;Set libname.DQ_:INDSNAME=ds;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Variable BRANCH_NUMBER has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Variable BRANCH_NUMBER has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Variable BRANCH_NUMBER has been defined as both character and numeric.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &lt;FONT color="#000000"&gt;length var Stat $32;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var = propcase(scan(ds, -1, "_"));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stat = propcase(scan(ds, -2, "_"));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = coalesce(of _numeric_);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep var stat value;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Note: I do not have any variable called Branch_Number.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you all in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 16:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230459#M41790</guid>
      <dc:creator>zoomzoom</dc:creator>
      <dc:date>2015-10-18T16:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230468#M41792</link>
      <description>First: great description of your situation!&lt;BR /&gt;&lt;BR /&gt;I haven't gone through your code in detail, and it's hard to see what's going on without source data. But BRANCH_NUMBER is comming from somewhere, you need to find out from where by looking through all your temporary tables.&lt;BR /&gt;I think that you now are paying the price for working with wide data - it drives syntax more than narrow/long table designs.</description>
      <pubDate>Sun, 18 Oct 2015 08:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230468#M41792</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-10-18T08:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230471#M41793</link>
      <description>&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggest you execute your code up to the data step where you get the Error and then run&amp;nbsp;the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table find_it as
  select *
  from dictionary.columns
  where 
    libname='&amp;lt;libref&amp;gt;' 
    and memname like 'DQ^_%' escape '^'
    and upcase(name)='BRANCH_NUMBER '
  ;
quit;

  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Oct 2015 09:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230471#M41793</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-18T09:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230480#M41798</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick﻿&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using your code, I have found the variable BRANCH_NUMBER. It is in two source tables in two different data types, but it is not in the list of variables I am pulling in for data quality check.&lt;/P&gt;
&lt;P&gt;Now, I have just two types of output dataset name, i.e. DQ_Stat_Var_Pre and DQ_Stat_Var.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data DQ_Stat_Var_Pre;&lt;/P&gt;
&lt;P&gt;Set Source_Table;&lt;/P&gt;
&lt;P&gt;&amp;lt;conditions&amp;gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Sql Noprint;&lt;/P&gt;
&lt;P&gt;Create table DQ_Stat_Var as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Select Count(Distinct Var) As Cnt from DQ_Stat_Var_Pre;&lt;/P&gt;
&lt;P&gt;Quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable BRANH_NUMBER only appears in some of the output _Pre tables. Previously when the code was working without error with a smaller subset of variables, I was dropping records when Stat='Pre'. Now, I cannot even run this commented piece of code, as I get the same error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data All;&lt;/P&gt;
&lt;P&gt;Set libname.DQ_:INDSNAME=ds;&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;Length var stat $32;&lt;/P&gt;
&lt;P&gt;var=propcase(scan(ds, -1, "_"));&lt;/P&gt;
&lt;P&gt;stat=propcase(scan(ds, -1, "_"));&lt;/P&gt;
&lt;P&gt;value=coalesce(of _numeric_);&lt;/P&gt;
&lt;P&gt;keep var stat value;&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can certainly drop the variable BRANCH_NUMBER while pulling data from the source tables. The entire code runs for quite some time, and I have to start from the begining.&amp;nbsp; Is there another way to counter the error with a similar type of INDSNAME operation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your valuable input.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 14:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230480#M41798</guid>
      <dc:creator>zoomzoom</dc:creator>
      <dc:date>2015-10-18T14:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230490#M41801</link>
      <description>&lt;P&gt;If BRANCH_NUMBER is not required, I would try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Set libname.DQ_: (drop=branch_number) &amp;nbsp;INDSNAME=ds;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 17:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230490#M41801</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-18T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230492#M41802</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats﻿&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what happens now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data All;&lt;/P&gt;
&lt;P&gt;Set libname.DQ_: (drop=branch_number) INDSNAME=ds;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: The variable BRANCH_NUMBER in the DROP, KEEP or RENAME list has never been referenced.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;lt;rest of the code&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;And the original error remains when I remove the Drop option.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 18:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230492#M41802</guid>
      <dc:creator>zoomzoom</dc:creator>
      <dc:date>2015-10-18T18:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230493#M41803</link>
      <description>&lt;P&gt;If I get it right, you don't want to read in the &lt;EM&gt;_pre&lt;/EM&gt; datasets when creating dataset &lt;EM&gt;all&lt;/EM&gt;. So, create your summary datasets with a different prefix and read only those when creating &lt;EM&gt;all&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 18:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230493#M41803</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-18T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230502#M41806</link>
      <description>Sure, I can do that. But before I do that, as that is quite time consuming, is there any other way to fetch the data for non _Pre datasets? I have made a temporary table with the values from dictionary.columns, and I have dropped the values containing _Pre. Is it possible to use this temp table to fetch the values from the summary tables?</description>
      <pubDate>Sun, 18 Oct 2015 20:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230502#M41806</guid>
      <dc:creator>zoomzoom</dc:creator>
      <dc:date>2015-10-18T20:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230509#M41807</link>
      <description>&lt;P&gt;Citing&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;I think that you now are paying the price for working with wide data - it drives syntax more than narrow/long table designs.&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It can happen that we take a wrong turn and it's sometimes worth to just re-start instead of trying to continue on the path we've taken. Normally when you re-think the problem with an open mind and all the experience already gathered easier solution arise.&lt;/P&gt;
&lt;P&gt;I feel you're at the point where you should re-think and re-start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't understood in full yet what you're trying to achieve. I believe it would help if you could describe as clear as possible what you have and what you need - and why.&lt;/P&gt;
&lt;P&gt;Please provide some sample data (a data step creating such data) for the have and then describe what you need (eventually also providing some data for illustration purposes). Let us also know the source data volumes you're dealing with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 20:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230509#M41807</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-18T20:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Building master table with input from multiple tables - Part2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230803#M41918</link>
      <description>Thank you, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;. &lt;BR /&gt;&lt;BR /&gt;I have changed the dataset names and it is working fine now.</description>
      <pubDate>Tue, 20 Oct 2015 18:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Building-master-table-with-input-from-multiple-tables-Part2/m-p/230803#M41918</guid>
      <dc:creator>zoomzoom</dc:creator>
      <dc:date>2015-10-20T18:57:20Z</dc:date>
    </item>
  </channel>
</rss>

