<?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 data set to be referenced that lives in SAS in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266565#M7361</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set in Excel which lists attributes of about 5000 variables. When I read in data into SAS, I build a dataset and if I need to add these attributes I have to&amp;nbsp;these attributes I do a merge ...similar to a vlookup... to retrieve the additional information from the excel sheet and put it into the SAS data set I'm creating. Is there a way I could read the excel sheet into SAS, and save it in such a way that whenever I need to do a merge or request information from that sheet, it's not tied to the excel sheet?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Garrett&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 22:18:00 GMT</pubDate>
    <dc:creator>SmcGarrett</dc:creator>
    <dc:date>2016-04-26T22:18:00Z</dc:date>
    <item>
      <title>Create a data set to be referenced that lives in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266565#M7361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set in Excel which lists attributes of about 5000 variables. When I read in data into SAS, I build a dataset and if I need to add these attributes I have to&amp;nbsp;these attributes I do a merge ...similar to a vlookup... to retrieve the additional information from the excel sheet and put it into the SAS data set I'm creating. Is there a way I could read the excel sheet into SAS, and save it in such a way that whenever I need to do a merge or request information from that sheet, it's not tied to the excel sheet?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Garrett&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 22:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266565#M7361</guid>
      <dc:creator>SmcGarrett</dc:creator>
      <dc:date>2016-04-26T22:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a data set to be referenced that lives in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266568#M7362</link>
      <description>&lt;P&gt;Save the dataset in a permanent library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Libname mydata 'C:\Project1';

Data mydata.attributes;
Set attributes;
Run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then the next time you need to use it, create the libname reference and use the saved dataset as (mydata.atteibutes).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 22:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266568#M7362</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-26T22:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a data set to be referenced that lives in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266575#M7363</link>
      <description>&lt;P&gt;I'm not quite sure if you have ever read this data into SAS. Have you? If so then creating and assigning a permanent library as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;suggests is the way to go.&lt;/P&gt;
&lt;P&gt;If you have never&amp;nbsp; actually read the data into SAS then I would suggest 1) save your spreadsheet as a CSV file. Use the import wizard to import the data. If you have a permanent library with your other data&amp;nbsp;then import it into that library.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 23:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-data-set-to-be-referenced-that-lives-in-SAS/m-p/266575#M7363</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-26T23:17:50Z</dc:date>
    </item>
  </channel>
</rss>

