<?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: Creating temporary datasets from all perminant datasets in a library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520400#M141103</link>
    <description>&lt;P&gt;Take a loop at PROC COPY.&amp;nbsp; The program will be very short, along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname perm "path to your folder with permanent data";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc copy in=perm out=work;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to add another statement such as "select all" but the documentation for PROC COPY will guide you.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 15:31:52 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-12-11T15:31:52Z</dc:date>
    <item>
      <title>Creating temporary datasets from all perminant datasets in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520396#M141100</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with Medicaid claims data.&amp;nbsp; I want to restrict data from claims records to include only family planning claims, and then merge that data with records in a cohort I created. &amp;nbsp;For the most part, I have been writing my own codes to create annual cohorts and restrict eligibility by certain criteria.&amp;nbsp; However,&amp;nbsp;selection of family planning claims records is based on diagnostic, procedural, and drug codes.&amp;nbsp; There are numerous codes that qualify, all of which I am unfamiliar with.&amp;nbsp; Fortunately, a federal agency has provided SAS code to create macros for applicable selection codes.&amp;nbsp; Here is my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The published code is advanced beyond my programing skills and includes a step where it downloads SAS datasets from a government website, creates a file in a specified location, and converts the downloaded SAS datasets to temporary datasets. &amp;nbsp;&lt;/P&gt;&lt;P&gt;#1 - For HIPAA compliance, my institution requires that I maintain data on a secure network which blocks internet access while I use it.&lt;/P&gt;&lt;P&gt;#2 - The hyperlink provided in the code is no longer valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To overcome these obstacles, I manually downloaded the datasets from the new hyperlink and saved the permanent datasets which contain the appropriate family planning codes on the server I am working off of.&amp;nbsp; I believe I have deciphered the code enough so that, if I convert the downloaded datasets to temporary datasets in my work library, the rest of the code will run. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is this.&amp;nbsp; There are numerous datasets in the downloaded file.&amp;nbsp; They have a common naming convention, lookup_'type'_'year' (ex. lookup_diaphram_2013).&amp;nbsp; Is there an efficient way to convert all datasets contained in my download file to temporary SAS datasets, maintaining their original naming convention?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ted&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 15:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520396#M141100</guid>
      <dc:creator>LEINAARE</dc:creator>
      <dc:date>2018-12-11T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating temporary datasets from all perminant datasets in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520400#M141103</link>
      <description>&lt;P&gt;Take a loop at PROC COPY.&amp;nbsp; The program will be very short, along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname perm "path to your folder with permanent data";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc copy in=perm out=work;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to add another statement such as "select all" but the documentation for PROC COPY will guide you.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 15:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520400#M141103</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-12-11T15:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating temporary datasets from all perminant datasets in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520409#M141107</link>
      <description>&lt;P&gt;Hi Astounding,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow.&amp;nbsp; Thank you.&amp;nbsp; That worked perfectly.&amp;nbsp; I was unaware of that procedure!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 15:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-temporary-datasets-from-all-perminant-datasets-in-a/m-p/520409#M141107</guid>
      <dc:creator>LEINAARE</dc:creator>
      <dc:date>2018-12-11T15:45:17Z</dc:date>
    </item>
  </channel>
</rss>

