<?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: Finding Data Set Output from Running SAS Code in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269609#M3984</link>
    <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Haha, it's great seeing you around here too! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, I had a misunderstanding of how to use the DATA statement. I didn't know you had to preface it for the relevant library. The example I put on SO was with generic names to make it simpler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for all the help. Project is going smoothly!&amp;nbsp;&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;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 02:30:35 GMT</pubDate>
    <dc:creator>davidzhang8828</dc:creator>
    <dc:date>2016-05-11T02:30:35Z</dc:date>
    <item>
      <title>Finding Data Set Output from Running SAS Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269599#M3980</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am a beginner at SAS. In my project, tried to run a piece of code to programmatically create a data set from an existing one with a new variable that has a value conditional on another existing variable. This is the code I ran:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data EMPDUP;&lt;BR /&gt;set EMWS1.Ids3_DATA;&lt;BR /&gt;MED_DUM = .;&lt;BR /&gt;If MEDV &amp;gt;= 25 THEN MED_DUM = 1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It runs the SAS code node fine, but I just can't seem to find where this EMPDUP dataset is. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 23:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269599#M3980</guid>
      <dc:creator>davidzhang8828</dc:creator>
      <dc:date>2016-05-10T23:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Data Set Output from Running SAS Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269601#M3981</link>
      <description>&lt;P&gt;Unless you're playing around with some advanced SAS options, when you create a table without a library reference, the default location for the newly created table is the WORK library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the following two statements are effectively identical:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data EMPDUP;
	set EMWS1.Ids3_DATA;
	MED_DUM = .;
	If MEDV &amp;gt;= 25 THEN MED_DUM = 1;
run;

data WORK.EMPDUP;
	set EMWS1.Ids3_DATA;
	MED_DUM = .;
	If MEDV &amp;gt;= 25 THEN MED_DUM = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As to where your table is PHYSICALLY located, run the following code to reveal the location of your WORK library location (Note: This location will most likely be different every time you run SAS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(pathname(WORK));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 00:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269601#M3981</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2016-05-11T00:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Data Set Output from Running SAS Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269602#M3982</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was the perfect answer. I ran the filepath code to find where the dataset was and moved it into the project. It imported as a data source perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 00:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269602#M3982</guid>
      <dc:creator>davidzhang8828</dc:creator>
      <dc:date>2016-05-11T00:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Data Set Output from Running SAS Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269605#M3983</link>
      <description>&lt;P&gt;Interestingly, that was not the code you posted on SO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here, you're using a library, EMWS1, as your source data. If you use the same library for the output data, is it in your project automatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data EMWS1.EMPDUP;
set EMWS1.Ids3_DATA;
MED_DUM = .;
If MEDV &amp;gt;= 25 THEN MED_DUM = 1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 01:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269605#M3983</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-11T01:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Data Set Output from Running SAS Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269609#M3984</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Haha, it's great seeing you around here too! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, I had a misunderstanding of how to use the DATA statement. I didn't know you had to preface it for the relevant library. The example I put on SO was with generic names to make it simpler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for all the help. Project is going smoothly!&amp;nbsp;&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;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 02:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269609#M3984</guid>
      <dc:creator>davidzhang8828</dc:creator>
      <dc:date>2016-05-11T02:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Data Set Output from Running SAS Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269655#M3985</link>
      <description>&lt;P&gt;As you learning, I would just like provide some tips. &amp;nbsp;Look at the code people post here, particularly the formatting, indetation, casing, and not using shorthands. &amp;nbsp;Code should be readable above all else, then it should be efficient. &amp;nbsp;So for the code you posted:&lt;/P&gt;
&lt;PRE&gt;data work.empdup;
  set emws1.ids3_data;
  med_dum=.;
  if medv &amp;gt;= 25 then med_dum=1;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 08:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Finding-Data-Set-Output-from-Running-SAS-Code/m-p/269655#M3985</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-11T08:14:32Z</dc:date>
    </item>
  </channel>
</rss>

