<?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 Create a comprehensive dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734293#M80397</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue with a procedure I need for a research application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dealing with several datasets, each for a given year, since 1996 to 2020. These datasets are composed of the same columns. Namely, I have a series of files named optionm.opprcdyyyy with yyyy ranging from 1996 to 2020.&lt;/P&gt;&lt;P&gt;All I want to do is to create a unique file listing all of the annual datasets together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have then to apply some filters. I think that by creating a unified document I could much more conveniently apply my filters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware this is quite trivial, but I have been stuck on this for quite a long time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anybody help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 14:37:50 GMT</pubDate>
    <dc:creator>RDellaVilla</dc:creator>
    <dc:date>2021-04-15T14:37:50Z</dc:date>
    <item>
      <title>Create a comprehensive dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734293#M80397</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue with a procedure I need for a research application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dealing with several datasets, each for a given year, since 1996 to 2020. These datasets are composed of the same columns. Namely, I have a series of files named optionm.opprcdyyyy with yyyy ranging from 1996 to 2020.&lt;/P&gt;&lt;P&gt;All I want to do is to create a unique file listing all of the annual datasets together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have then to apply some filters. I think that by creating a unified document I could much more conveniently apply my filters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware this is quite trivial, but I have been stuck on this for quite a long time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anybody help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 14:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734293#M80397</guid>
      <dc:creator>RDellaVilla</dc:creator>
      <dc:date>2021-04-15T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a comprehensive dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734306#M80398</link>
      <description>&lt;P&gt;It sounds like you want to combine the &lt;STRONG&gt;opprc1996&lt;/STRONG&gt; through &lt;STRONG&gt;opprc2020&lt;/STRONG&gt; datasets from the &lt;STRONG&gt;optionm&lt;/STRONG&gt; library into a single dataset?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set optionm.opprc1996 - optionm.opprc2020;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734306#M80398</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2021-04-15T15:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a comprehensive dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734309#M80399</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data combinedData;
set optionm.oppr: indsname=source;
source_file=source;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is a reference that illustrates how to refer to variables and datasets in a short cut list:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use short cut lists as noted in the blog posts. The INDSNAME will store the name of the original file in a variable called source_file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-a-comprehensive-dataset/m-p/734309#M80399</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-15T15:06:44Z</dc:date>
    </item>
  </channel>
</rss>

