<?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 SAS Enterprise Miner write acess in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Miner-write-acess/m-p/438179#M282325</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting the following error when trying to write back to the EM_EXPORT_TRAIN dataset:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR:&amp;nbsp; Write access to member EMWS1.EMCODE_TRAIN.DATA is denied.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS EM it will only export from the SASUSER library of which is \\EMWS1\EMCODE_TRAIN.sas.&amp;nbsp; I have even added the -NORSASUSER option to the configuration file and restarted SAS EM but without success.&amp;nbsp; Any ideas how to overcome as I would prefer to write back to the EMCODE_TRAIN data set.&amp;nbsp; Here is my code within the SAS Code node:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MyLib.selection;
	call streaminit(12345);
	set &amp;amp;em_import_data;
	urand = rand('uniform');
proc sort data=MyLib.selection;
	by urand;
data &amp;amp;em_export_train;
	drop fold_size urand;
	set MyLib.selection nobs=nobs_;
	fold_size = round(nobs_ / 10.0);
		if _N_ &amp;lt;= fold_size then fold = 'A';
		if _N_ &amp;gt; fold_size and _N_ &amp;lt;= 2*fold_size then fold = 'B';
		if _N_ &amp;gt; 2*fold_size and _N_ &amp;lt;= 3*fold_size then fold = 'C';
		if _N_ &amp;gt; 3*fold_size and _N_ &amp;lt;= 4*fold_size then fold = 'D';
		if _N_ &amp;gt; 4*fold_size and _N_ &amp;lt;= 5*fold_size then fold = 'E';
		if _N_ &amp;gt; 5*fold_size and _N_ &amp;lt;= 6*fold_size then fold = 'F';
		if _N_ &amp;gt; 6*fold_size and _N_ &amp;lt;= 7*fold_size then fold = 'G';
		if _N_ &amp;gt; 7*fold_size and _N_ &amp;lt;= 8*fold_size then fold = 'H';
		if _N_ &amp;gt; 8*fold_size and _N_ &amp;lt;= 9*fold_size then fold = 'I';
		if _N_ &amp;gt; 9*fold_size then fold = 'J';
proc means data=&amp;amp;em_export_train;
	by fold;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 17 Feb 2018 18:22:52 GMT</pubDate>
    <dc:creator>David_S</dc:creator>
    <dc:date>2018-02-17T18:22:52Z</dc:date>
    <item>
      <title>SAS Enterprise Miner write acess</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Miner-write-acess/m-p/438179#M282325</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting the following error when trying to write back to the EM_EXPORT_TRAIN dataset:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR:&amp;nbsp; Write access to member EMWS1.EMCODE_TRAIN.DATA is denied.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS EM it will only export from the SASUSER library of which is \\EMWS1\EMCODE_TRAIN.sas.&amp;nbsp; I have even added the -NORSASUSER option to the configuration file and restarted SAS EM but without success.&amp;nbsp; Any ideas how to overcome as I would prefer to write back to the EMCODE_TRAIN data set.&amp;nbsp; Here is my code within the SAS Code node:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data MyLib.selection;
	call streaminit(12345);
	set &amp;amp;em_import_data;
	urand = rand('uniform');
proc sort data=MyLib.selection;
	by urand;
data &amp;amp;em_export_train;
	drop fold_size urand;
	set MyLib.selection nobs=nobs_;
	fold_size = round(nobs_ / 10.0);
		if _N_ &amp;lt;= fold_size then fold = 'A';
		if _N_ &amp;gt; fold_size and _N_ &amp;lt;= 2*fold_size then fold = 'B';
		if _N_ &amp;gt; 2*fold_size and _N_ &amp;lt;= 3*fold_size then fold = 'C';
		if _N_ &amp;gt; 3*fold_size and _N_ &amp;lt;= 4*fold_size then fold = 'D';
		if _N_ &amp;gt; 4*fold_size and _N_ &amp;lt;= 5*fold_size then fold = 'E';
		if _N_ &amp;gt; 5*fold_size and _N_ &amp;lt;= 6*fold_size then fold = 'F';
		if _N_ &amp;gt; 6*fold_size and _N_ &amp;lt;= 7*fold_size then fold = 'G';
		if _N_ &amp;gt; 7*fold_size and _N_ &amp;lt;= 8*fold_size then fold = 'H';
		if _N_ &amp;gt; 8*fold_size and _N_ &amp;lt;= 9*fold_size then fold = 'I';
		if _N_ &amp;gt; 9*fold_size then fold = 'J';
proc means data=&amp;amp;em_export_train;
	by fold;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Feb 2018 18:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Miner-write-acess/m-p/438179#M282325</guid>
      <dc:creator>David_S</dc:creator>
      <dc:date>2018-02-17T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Miner write acess</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Miner-write-acess/m-p/438230#M282326</link>
      <description>&lt;P&gt;So after review I finally discovered that although SAS throws the error when ran within the node you can run it and still produce the proper output outside the node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 03:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Miner-write-acess/m-p/438230#M282326</guid>
      <dc:creator>David_S</dc:creator>
      <dc:date>2018-02-18T03:06:50Z</dc:date>
    </item>
  </channel>
</rss>

