03-05-2015 03:18 PM
First, I admit that I am not a programmer. I use EG and EM to do most of the heavy lifting for me....I hope this forum can help me....
I am using EM 13.2 to prepare data set for text mining. I am trying to find a way to cut several process steps by using the SAS Code Node.
In EG, a conditional date statement reads (below). I need a similar code for Code Node, allowing me to define my data set before Parsing Node and Filter Node.
Accomplishing this may reduce my cycle time dramatically.
Updated: I was making a simple error. Now things work great!
DATA &EM_EXPORT_TRAIN; SET &EM_IMPORT_DATA;
03-05-2015 04:38 PM
Look at the macro variables you have available, you will want either _TRAIN or _RAW or something similar:
Setup you export:
note that Pass imported data sets to successors is not checked
Enter the code you want to run:
/*this shouldn't really do anything, as &_raw should change each time this node runs anyway, but the macro you have in your example performs a similar function*/
if exist("&_raw.") then call execute("proc sql; drop table &_raw.; quit;");
create table &_raw. as
from &_train. t1
where t1.beverage like 'b%';
03-05-2015 04:45 PM
@friedegg thanks for jumping in! The screenshots take quite some time, very appreciated!
I didn't remember the old icons had the "$" sign. Those are so funny.
I hope you get to try some of the new stuff soon (ensemble, HPforest, boosting, etc)!