<?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 Exporting and Replacing a SAS Data File for Use in EG From EM in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183565#M2200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please view the following basic code that I put into a SAS Code Node within Enterprise Miner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let EXPORT_DIR_NAME = &lt;A&gt;\\SAS01\sasusers\Shared\PredictiveModeling&lt;/A&gt;;&lt;BR /&gt;%let EXPORT_TABLE_NAME = ExportedContinuousData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname export "&amp;amp;EXPORT_DIR_NAME";&lt;/P&gt;&lt;P&gt;data export.&amp;amp;EXPORT_TABLE_NAME.;&lt;BR /&gt;&amp;nbsp; set &amp;amp;EM_IMPORT_DATA;&lt;BR /&gt;&amp;nbsp; keep _NODE_ P_BLEND_GROSS_LOAD V_BLEND_GROSS_LOAD BLEND_GROSS_LOAD PURE_PREMIUM COST_CENTER_ID;&lt;BR /&gt;&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly before I had the line saying replace in there, but now it just will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Communities Admin (removed email and phone for security reasons)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 14:59:33 GMT</pubDate>
    <dc:creator>Zachary</dc:creator>
    <dc:date>2014-11-24T14:59:33Z</dc:date>
    <item>
      <title>Exporting and Replacing a SAS Data File for Use in EG From EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183565#M2200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please view the following basic code that I put into a SAS Code Node within Enterprise Miner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let EXPORT_DIR_NAME = &lt;A&gt;\\SAS01\sasusers\Shared\PredictiveModeling&lt;/A&gt;;&lt;BR /&gt;%let EXPORT_TABLE_NAME = ExportedContinuousData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname export "&amp;amp;EXPORT_DIR_NAME";&lt;/P&gt;&lt;P&gt;data export.&amp;amp;EXPORT_TABLE_NAME.;&lt;BR /&gt;&amp;nbsp; set &amp;amp;EM_IMPORT_DATA;&lt;BR /&gt;&amp;nbsp; keep _NODE_ P_BLEND_GROSS_LOAD V_BLEND_GROSS_LOAD BLEND_GROSS_LOAD PURE_PREMIUM COST_CENTER_ID;&lt;BR /&gt;&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly before I had the line saying replace in there, but now it just will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Communities Admin (removed email and phone for security reasons)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 14:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183565#M2200</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2014-11-24T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Replacing a SAS Data File for Use in EG From EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183566#M2201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.63636302948px; background-color: #ffffff;"&gt;The REPLACE statement can appear only in a DATA step that contains a MODIFY statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.63636302948px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183566#M2201</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-24T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Replacing a SAS Data File for Use in EG From EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183567#M2202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Do you have an example handy of the modify command? Or would you suggest doing it outside of the DATA step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183567#M2202</guid>
      <dc:creator>Zachary</dc:creator>
      <dc:date>2014-11-24T16:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Replacing a SAS Data File for Use in EG From EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183568#M2203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I googled an example. It seems that you should use a &lt;STRONG&gt;modify&lt;/STRONG&gt; statement instead of a &lt;STRONG&gt;set&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SAS Replace Statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201991.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201991.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zach, why do you need to use a replace statement in your SAS Code Node? This code would re-run every time you run that path on your EM diagram, wouldn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183568#M2203</guid>
      <dc:creator>M_Maldonado</dc:creator>
      <dc:date>2014-11-24T16:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting and Replacing a SAS Data File for Use in EG From EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183569#M2204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since all you are doing is saving a copy of an existing SAS dataset, simply remove the line that contains the replace statement. You simply shouldn't use a replace statement for what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since you asked, the documentation about it can be found at: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201991.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000201991.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Exporting-and-Replacing-a-SAS-Data-File-for-Use-in-EG-From-EM/m-p/183569#M2204</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-24T16:32:32Z</dc:date>
    </item>
  </channel>
</rss>

