<?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: Macro To Read multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311679#M67436</link>
    <description>&lt;P&gt;Create a macro with data step merge and use keep= if you have less variables to consider or drop= to drop some variables and keep more variables.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 14:03:00 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2016-11-15T14:03:00Z</dc:date>
    <item>
      <title>Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311664#M67429</link>
      <description>&lt;P&gt;I have written the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro one_run (dataset1=, dataset2=, var1= , var2= );
%macro two_run (yourdate= 01Feb2015)* this is example date 
proc sql;
create table ab as
select a.&amp;amp;var1, a.INDIV_ID, b.CD, b.&amp;amp;var2, b.AGENCY, b.DT, b.PAID_AMT, b.PROD_ID, b.CANCEL_DT, b.RECEIVED_CD, b.PAYMENT_DT,
b.PAYMENT_STATUS, b.PAYMENT_TYPE, b.OKey, b.Cancel
from &amp;amp;dataset1 a, &amp;amp;dataset2 b
where a.MSR_INDIV_ID = b.INDIVIDUAL_ID
and date ge "&amp;amp;yourdate."d;
run;
%mend one_run;&lt;BR /&gt;%mend two_run;

%one_run (dataset1=var.FF_ACX_MSR_ID10, dataset2=ora1.FACT_MKE_PUB_SUBSCRIPTION)
%two_run(&amp;amp;yourdate)
&lt;/PRE&gt;
&lt;P&gt;The challenge i am facing&amp;nbsp;here is that i have in some of the datasets more than 70 variables hence i cannot use var1, var2 so on and so forth to call these variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly suggest how should i achieve this. if there is any other alternate apart from proc sql or macro kindly assist&amp;nbsp;with the same as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking forward to assistance as always.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311664#M67429</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2016-11-15T13:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311667#M67430</link>
      <description>&lt;P&gt;What are you trying to achieve?&lt;/P&gt;
&lt;P&gt;I ask this because I don't think your code can work at all. And is written in a way that successfully obfuscates your intentions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311667#M67430</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-15T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311670#M67431</link>
      <description>&lt;P&gt;Post example test data (in the form of a datastep) and what the output should look like. &amp;nbsp;Why do you have 70 variables to start with? &amp;nbsp;That is a lot, and any programming you do will be complicated by this. &amp;nbsp;Mostly, if you have lots of variables you would use arrays - can be simple depending on naming of the variables. &amp;nbsp;Your code as given doesn't make any sense I am afraid.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311670#M67431</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-15T13:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311676#M67434</link>
      <description>&lt;P&gt;Hi Kurt,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have moved data from Oracle to SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we are trying to find any data if all data has moved entirely or is some discrepancy. here i have some datasets which could have variables ranging from 10 to almost 68.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i write a proc sql statement, i would have to manually add in name of all the variables every time and that would be a tedious activity. I have around 72 data tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope i am able to comprehend my requirement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311676#M67434</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2016-11-15T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311679#M67436</link>
      <description>&lt;P&gt;Create a macro with data step merge and use keep= if you have less variables to consider or drop= to drop some variables and keep more variables.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311679#M67436</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2016-11-15T14:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311680#M67437</link>
      <description>&lt;P&gt;If you want to create steps dynamically, you can get the column names and attributes from dictionary.columns (SQL) or sashelp.vcolumn (data step) and then let a data step write the compare steps dynamically with call execute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your initial example was just a inner join with no compare functionality at all.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311680#M67437</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-15T14:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311733#M67456</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached excel contains some example data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here i have added some mocked data for 2 tables: Employee and emp_salary table which have 8 and 5 variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly i have 70 tables which have 5 to 68 variables. With proc sql i would need to manually feed in the variables every time however with a macro i would need to define a macro variable and keep changing its value as per the required variable from respective table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Apologise i am not familair with SAS arrays.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once we are able to achieve this we would run a proc freq to see the freq of these variables in the select statement from the respective datasets and find difference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro freq( dsn,n);&lt;/P&gt;
&lt;P&gt;proc freq data = &amp;amp;dsn;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tables var;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;%freq(datasetname,1);&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%freq(datasetname,2);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%freq(datasetname,3);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311733#M67456</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2016-11-15T15:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311735#M67457</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;Post example test data (in the form of a datastep)" - sorry, not touching Excel files - plain text in the post.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311735#M67457</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-15T15:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311744#M67458</link>
      <description>&lt;P&gt;Please see if this is what you were asking for (in plain text):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table Name &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;Variable Name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table A &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;emp_code&lt;/P&gt;
&lt;P&gt;Table A &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;emp_name&lt;/P&gt;
&lt;P&gt;Table A &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;date_join&lt;/P&gt;
&lt;P&gt;Table A &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;department&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table A &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;emp_phone&lt;/P&gt;
&lt;P&gt;Table A &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;emp_cell&lt;/P&gt;
&lt;P&gt;Table A &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;email_id&lt;/P&gt;
&lt;P&gt;Table A &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;emp_status&lt;/P&gt;
&lt;P&gt;Table B &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;emp_code&lt;/P&gt;
&lt;P&gt;Table B &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;emp_sal&lt;/P&gt;
&lt;P&gt;Table B &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; sal_month&lt;/P&gt;
&lt;P&gt;Table B &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; avg_tenure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So on and so forth. Table A and B are ficticious names and the variables in these tables are changing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 15:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311744#M67458</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2016-11-15T15:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311935#M67560</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if my data was uploaded yesterday, sharing again. These are 2 tables - Employee and emp_salary with various variables. These variables will keep on changing for each table and there are 70 tables we have to work on.&lt;/P&gt;
&lt;PRE&gt;Table Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	Variabe aname&amp;nbsp;&amp;nbsp;
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	emp_code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	emp_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	date_of_join&amp;nbsp;&amp;nbsp;&amp;nbsp;
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	department&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	emp_phone&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
     Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	emp_mob
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	email_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
    Employee&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;	emp_status&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
emp_salary	emp_code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
emp_salary	emp_sal
emp_salary	sal_month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
emp_salary	salary_process_numbe
emp_salary	Last_Salary
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311935#M67560</guid>
      <dc:creator>Shivi82</dc:creator>
      <dc:date>2016-11-16T09:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Macro To Read multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311941#M67563</link>
      <description>&lt;P&gt;Yes, I saw your Excel file, however I will not touch Office files from the net, they are a security risk. &amp;nbsp;Post test data - in the form of a datastep - in the body of your post, e.g.;&lt;/P&gt;
&lt;PRE&gt;data 1;
&amp;nbsp; input a b;
datalines;
1 1
2 2
;
run;&lt;/PRE&gt;
&lt;P&gt;Now looking at what you have posted below, you have two tables, only one of which variable name matches - I have no idea on other properties such as format or length. &amp;nbsp;Now what do you want to do with those two variables - this is where showing an want table is useful. &amp;nbsp;It seems your looking to merge all the 70 tables into one really wide table, not a recommended approach. &amp;nbsp;Much like your Oracle database, it makes life easier for programming if you keep the normalised structure (data goes down rather than across). &amp;nbsp;Take this one, if you normalise the data to:&lt;/P&gt;
&lt;P&gt;EMP_CODE &amp;nbsp; &amp;nbsp; PARAM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RESULT&lt;/P&gt;
&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EMP_NAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Abc&lt;/P&gt;
&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATE_OF_JOIN &amp;nbsp; 01JAN2014&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Then your task becomes trivial as you can just set all of the datasets into one big dataset. &amp;nbsp;Later on if you need the transposed data, then use proc transpose or array processing to transpose the data up.&lt;/P&gt;
&lt;P&gt;Also note that you can get one complete normalised dataset from the Oracle Clinical (OC) master dataset, i.e. avoiding all the retrieval of individual data and processing. &amp;nbsp;In OC thre is a Questions, and reposnses master table, merge those two and export and it contains the param/result setup from above.&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;&amp;nbsp;&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, 16 Nov 2016 09:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-To-Read-multiple-variables/m-p/311941#M67563</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-16T09:35:14Z</dc:date>
    </item>
  </channel>
</rss>

