Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

SAS EM 6.2 Export Training Data

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

SAS EM 6.2 Export Training Data

Hi all,

I'm using SAS EM 6.2 and am trying to export my training data to SAS after performing a variable cluster node. I know in the later versions there is a Save Data node that would perform this function, is there a similar function for 6.2? Any help is greatly appreciated.


Accepted Solutions
Solution
‎05-01-2014 04:03 PM
SAS Employee
Posts: 24

Re: SAS EM 6.2 Export Training Data

You can use a SAS code to write the results of the Cluster node to a directory as a SAS table with a data step, just like in SAS. Connect a SAS code node to the right side of the cluster node. In the SAS Code node use code like that below to save the SAS Code node's imported data to an external directory:

%let EXPORT_DIR_NAME= C:\temp; /* An existing directory that you have access to */

%let EXPORT_TABLE_NAME= exported_table; /* Whatever name you want */

libname export "&EXPORT_DIR_NAME";

data export.&EXPORT_TABLE_NAME.;

     set &EM_IMPORT_DATA;

run;

View solution in original post


All Replies
Solution
‎05-01-2014 04:03 PM
SAS Employee
Posts: 24

Re: SAS EM 6.2 Export Training Data

You can use a SAS code to write the results of the Cluster node to a directory as a SAS table with a data step, just like in SAS. Connect a SAS code node to the right side of the cluster node. In the SAS Code node use code like that below to save the SAS Code node's imported data to an external directory:

%let EXPORT_DIR_NAME= C:\temp; /* An existing directory that you have access to */

%let EXPORT_TABLE_NAME= exported_table; /* Whatever name you want */

libname export "&EXPORT_DIR_NAME";

data export.&EXPORT_TABLE_NAME.;

     set &EM_IMPORT_DATA;

run;

New Contributor
Posts: 3

Re: SAS EM 6.2 Export Training Data

Thank you so much, that worked perfectly!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 437 views
  • 0 likes
  • 2 in conversation