<?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: execute same procedure over multiple datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166412#M263790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jaap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I confused you and thank you for the example you just presented!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to do is to first get a list of the datasets within the HAVE library.&amp;nbsp; And then plug this list into some kind of do loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The loop is to select 1% of the sample out of the datasets in the HAVE library (or even proc sort to make things simple)&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;.&amp;nbsp; The loop work on the procedures &lt;/SPAN&gt;repeatedly&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; until it reaches the end of the list.&amp;nbsp; I now know how to use proc datasets to get the list of datasets in a library, but I'm not sure how to plug that into a sas do until loop/macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you point me in the right direction?&amp;nbsp; Thank you -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 01:59:42 GMT</pubDate>
    <dc:creator>caveman529</dc:creator>
    <dc:date>2014-08-20T01:59:42Z</dc:date>
    <item>
      <title>execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166407#M263785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a library with hundreds of datasets like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cq_19970108.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970109.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970110.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970115.sas7bdat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use macro to extract 1% of the sample stratified by, say, variable A, B, and C and then put them in separate files (keep the original naming convention but in a different library)?&amp;nbsp; I have the general idea that I need to use the proc contents procedure and then somehow plug the result of the proc contents into a proc surveyselect macro and repeat the process.&amp;nbsp; Not quite sure how to google this around to know to do this in the right way.&amp;nbsp; I think this got to be common practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HAVE:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;library name: HAVE&lt;/P&gt;&lt;P&gt;datasets:&lt;/P&gt;&lt;P&gt;cq_19970108.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970109.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970110.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970115.sas7bdat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;WANT:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;library name: WANT&lt;/P&gt;&lt;P&gt;datasets:&lt;/P&gt;&lt;P&gt;cq_19970108.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970109.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970110.sas7bdat&lt;/P&gt;&lt;P&gt;cq_19970115.sas7bdat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure to be repeated proc surveyslect at 1% of the original data observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: green; background: white;"&gt;/* 1. Get a list of datsets */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; have&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: purple; background: white;"&gt;'E:\wrds\taq\taq.1996\taq96d\sasdata'&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;output&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: purple; background: white;"&gt;"Library Members"&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; = have_table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;datasets&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;library&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;=have &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;memtype&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;=data ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;output&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;create&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; names &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;select&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&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;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; have_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&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; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; MemType = &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: purple; background: white;"&gt;'DATA'&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: green; background: white;"&gt;/* 2. Just one datset (Not how to plug the name dataset into the Step 3 do loop) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; dn = cq_19960105;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;surveyselect&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: teal; background: white;"&gt;have.&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;&amp;amp;dn &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;method&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; = urs &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;sampsize&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rep=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;seed&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;12345&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;=want.&amp;amp;dn &lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;outhits&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; symbol date time;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: green; background: white;"&gt;/* 3. Looping over the entire list of datasets */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; sampleselect();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; i = &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp;N;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp;&amp;amp;deal_no_&amp;amp;i;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 14.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt; font-family: Consolas; color: black; background: white;"&gt; sampleselect();&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 23:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166407#M263785</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-08-18T23:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166408#M263786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one approach.&lt;/P&gt;&lt;P&gt;Step 1 is write the code to do one file.&lt;/P&gt;&lt;P&gt;Step 2 is probably to convert that into a macro with a single parameter, the name of the dataset (the member name).&lt;/P&gt;&lt;P&gt;Step 3 is generate calls to the macro for every member in the input library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start by posting your solution to Step 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 02:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166408#M263786</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-08-19T02:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166409#M263787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Tom:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I specified the main steps I hope to go through and uploaded a sample data for just one dataset in the library.&amp;nbsp; But I haven't find a nice guide how to plug a list (in the form of a sas data) to a do until macro loop to get the job done.&amp;nbsp; Could you offer me some guidance on this?&amp;nbsp; Some of the examples I searched online is difficult to understand since I'm not sure what they want to achieve in the first place and not sure the data structure they are referencing to.&amp;nbsp; Thanks -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 04:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166409#M263787</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-08-19T04:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166410#M263788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many posts I have put out for this subject:&lt;/P&gt;&lt;P&gt;libname temp "path to where you have your datasets"; /* Note you can exclude this if you already have your libname */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.vtable (where=(libname="TEMP"));&amp;nbsp; /* Gets all datasets in that libname */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('data my_new_l.'||strip(memname)||';&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set temp.'||strip(memename)||';&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above will run the datastep in the execute block for every dataset in the given libname. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 09:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166410#M263788</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-19T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166411#M263789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not really understand what you are wanting. &lt;BR /&gt;It could be make selection in a collection in some datasets .... analyze those grouped.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A simple&amp;nbsp; approach with two datasets. First I just creating them. Note: only 1 datastep is needed.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;data dataset1 dataset2 ;&lt;BR /&gt;&amp;nbsp; Do i= 1 to 20 ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date=i ; output dataset1;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; Do i= 100 to 150 ;&amp;nbsp;&amp;nbsp;&amp;nbsp; date=i ; output dataset2;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Combine-union off all datasets and select (stratified as you like) record can be done as:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;data select ;&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;&amp;nbsp; /* a single dataset as result */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; length datain $41 ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* names in datain can be "libary.member" total 41 long */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; set dataset: indsname=_datain ;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* select all datasets in the list abbreviated by the : symbol&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&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;&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;&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; - here just 2 but it is variable &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#n0oru3akf51pi5n1wco2onzr39oz.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#n0oru3akf51pi5n1wco2onzr39oz.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Third Edition&lt;/A&gt; */&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( ranuni(-1) &amp;lt; 0.5 ) ;&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; /* the selection replace that with yours.&amp;nbsp; This is simple 50% random */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; datain=_datain;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* keeping the name of the original dataset as known from before the combine-union */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; put datain date _n_ ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* just showing what is done, remove with real processing */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only pre-req is that all members are having similar structure (variables).&lt;/P&gt;&lt;P&gt;Needing to split up can be done with a datastep. At that moment all name must be prepared&amp;nbsp; (data namelist&amp;nbsp; ) followed&amp;nbsp; by a select/output on that datain.&lt;/P&gt;&lt;P&gt;More often the combined dataset is the one needed for analyzing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 11:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166411#M263789</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-19T11:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166412#M263790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jaap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I confused you and thank you for the example you just presented!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to do is to first get a list of the datasets within the HAVE library.&amp;nbsp; And then plug this list into some kind of do loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The loop is to select 1% of the sample out of the datasets in the HAVE library (or even proc sort to make things simple)&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;.&amp;nbsp; The loop work on the procedures &lt;/SPAN&gt;repeatedly&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; until it reaches the end of the list.&amp;nbsp; I now know how to use proc datasets to get the list of datasets in a library, but I'm not sure how to plug that into a sas do until loop/macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you point me in the right direction?&amp;nbsp; Thank you -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 01:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166412#M263790</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-08-20T01:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166413#M263791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write a macro and then use call execute to invoke it once for each data set. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 03:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166413#M263791</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-08-20T03:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166414#M263792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample RW9 has given is using the list of all datasets using sashelp.vtable I think in this case that is better than using proc datasets.&lt;BR /&gt;Having that list is generating new commands to be executed with that name.&amp;nbsp; Probably the most easy quick and clean approach.&lt;/P&gt;&lt;P&gt;I think you should try the examples. No the old same stoneage anymore. We are adding some bronze to it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The IT world is changing, some new pony tricks to add.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 05:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166414#M263792</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-20T05:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166415#M263793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generating many macro variables is probably much more work and potentially too confusing for what you want.&lt;/P&gt;&lt;P&gt;Creating a macro and using a tool like CALL EXECUTE to generate multiple calls to it is probably easier to code and understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; sample1(dn);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;proc surveyselect data=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;have.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;amp;dn method = urs sampsize = &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rep=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; seed=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;12345&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; out=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;want.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;amp;dn out=outhits;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id symbol date time;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; sample1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; have &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; want &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;contents&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=have._all_ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;noprint&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=contents;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; contents;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; memname ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; first.memname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; execute(cats(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'%sample1('&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,memname,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;')'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166415#M263793</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-08-20T17:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: execute same procedure over multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166416#M263794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Jaap and Tom.&amp;nbsp; I'll implement it right now.&amp;nbsp; Get tied up in recent days due to deadlines.&amp;nbsp; Yes, I need to improve my toolkits &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy a great weekend ~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 08:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-same-procedure-over-multiple-datasets/m-p/166416#M263794</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-08-23T08:50:31Z</dc:date>
    </item>
  </channel>
</rss>

