<?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 Can you add a SAS dataset to a project - in code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68819#M6855</link>
    <description>I am a former PC SAS user, who is now limited to SAS EG on a server.  I am accustomed to having SAS Explorer available to quickly access SAS files (browsing).  Navigating the Server List to find a file, often having to Refresh the Library, then double-clicking to add it to the project is time consuming.  Usually this is a source file I may want to browse.  &lt;BR /&gt;
 &lt;BR /&gt;
It would help immensely if there was some code, perhaps undocumented, that would put a file on the project - just as if I had gone through the steps above.  &lt;BR /&gt;
For example, in the code below, if I could put the "mainlib.monthly_data" onto the project, I'd have the file immediately available if I wanted to browse it.&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
/*  Insert code to put monthly_data file in the project */&lt;BR /&gt;
&lt;BR /&gt;
data testing ;&lt;BR /&gt;
   set mainlib.monthly_data (keep=a b c d) ;&lt;BR /&gt;
	&lt;BR /&gt;
   ***  additional code ;&lt;BR /&gt;
run;</description>
    <pubDate>Tue, 31 Aug 2010 19:18:36 GMT</pubDate>
    <dc:creator>jim_snider</dc:creator>
    <dc:date>2010-08-31T19:18:36Z</dc:date>
    <item>
      <title>Can you add a SAS dataset to a project - in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68819#M6855</link>
      <description>I am a former PC SAS user, who is now limited to SAS EG on a server.  I am accustomed to having SAS Explorer available to quickly access SAS files (browsing).  Navigating the Server List to find a file, often having to Refresh the Library, then double-clicking to add it to the project is time consuming.  Usually this is a source file I may want to browse.  &lt;BR /&gt;
 &lt;BR /&gt;
It would help immensely if there was some code, perhaps undocumented, that would put a file on the project - just as if I had gone through the steps above.  &lt;BR /&gt;
For example, in the code below, if I could put the "mainlib.monthly_data" onto the project, I'd have the file immediately available if I wanted to browse it.&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
/*  Insert code to put monthly_data file in the project */&lt;BR /&gt;
&lt;BR /&gt;
data testing ;&lt;BR /&gt;
   set mainlib.monthly_data (keep=a b c d) ;&lt;BR /&gt;
	&lt;BR /&gt;
   ***  additional code ;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 31 Aug 2010 19:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68819#M6855</guid>
      <dc:creator>jim_snider</dc:creator>
      <dc:date>2010-08-31T19:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add a SAS dataset to a project - in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68820#M6856</link>
      <description>Quick test of this, using SAS on a PC in EG:&lt;BR /&gt;
&lt;BR /&gt;
mainlib library was pre-asigned. &lt;BR /&gt;
&lt;BR /&gt;
Executed your data step and the testing dataset was now in the EG project.&lt;BR /&gt;
&lt;BR /&gt;
I think the key is the pre-assigment of the library, talk to your SAS server adminstrator this is easy to set up if not already.</description>
      <pubDate>Tue, 31 Aug 2010 19:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68820#M6856</guid>
      <dc:creator>Jay</dc:creator>
      <dc:date>2010-08-31T19:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add a SAS dataset to a project - in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68821#M6857</link>
      <description>The mainlib would be pre-assigned and would be on the Server List.  My question was not in reference to the output file (testing dataset), it was in reference to the source file - mainlib.monthly_data.   &lt;BR /&gt;
 &lt;BR /&gt;
Also, I don't know the terminology, but there are 2 different ways a dataset appears in a project.  &lt;BR /&gt;
1.  In the process flow - In my example, the output file would be in the project.  If I resubmitted the same code, specifying a differently named output file, the 1st output file would no longer be in the project.&lt;BR /&gt;
2.  If I choose a file from the Server list and 'Add to Project', the file is permanently in the project, listed on left side - not in a process flow.  The file is only removed from the project if I remove it manually.  &lt;BR /&gt;
 &lt;BR /&gt;
In my original question, I was asking about Adding a file to a project in the 2nd manner - permanently.</description>
      <pubDate>Tue, 31 Aug 2010 19:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68821#M6857</guid>
      <dc:creator>jim_snider</dc:creator>
      <dc:date>2010-08-31T19:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add a SAS dataset to a project - in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68822#M6858</link>
      <description>Jim,&lt;BR /&gt;
&lt;BR /&gt;
I think I understand your question, but I don't think there is a way from a command line to do it.&lt;BR /&gt;
&lt;BR /&gt;
You can use File-&amp;gt;Open-&amp;gt;Data as a menu item, navigating from the keyboard, to avoid having to click around. (Key sequence Alt+F, O, D to get to the data dialog.)&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 31 Aug 2010 19:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68822#M6858</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-08-31T19:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add a SAS dataset to a project - in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68823#M6859</link>
      <description>One correction:&lt;BR /&gt;
&lt;BR /&gt;
  ***  from prior posting:&lt;BR /&gt;
 &lt;B&gt;If I resubmitted the same code, specifying a differently named output file, the 1st output file would no longer be in the project.&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
   ****  ;&lt;BR /&gt;
&lt;BR /&gt;
When I said that resubmitting the code would take the former output file off the project - that was because of my option "Replace without Prompting".  &lt;BR /&gt;
However, my question is really not concerning output files, it's a desire to put any file I want on the project using SAS code rather than manually finding it on the Server List and then double-clicking or right-clicking and choosing "Add to Project".</description>
      <pubDate>Tue, 31 Aug 2010 20:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-you-add-a-SAS-dataset-to-a-project-in-code/m-p/68823#M6859</guid>
      <dc:creator>jim_snider</dc:creator>
      <dc:date>2010-08-31T20:16:09Z</dc:date>
    </item>
  </channel>
</rss>

