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

Dynamic dataset name as result of Extension Node

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

Dynamic dataset name as result of Extension Node

I developed an extended node that simply merges N data sets in a final one, this one with a dynamic name, every time the node runs.

 

I want to connect this Extended Node to another node, a Meta Data node or a Input Data node, using the dynamic name.

 

How do I reference the data set created with a dynamic name in these next Nodes?

 

Am I right if i say it should be would a EM_ .... variable? Do I need a SAS Code Node in the middle?

 

Thank you very much!

 


Accepted Solutions
Solution
‎10-17-2016 04:05 AM
SAS Super FREQ
Posts: 306

Re: Dynamic dataset name as result of Extension Node

I think all you want to do is call the data set &EM_EXPORT_TRAIN, then any subsequent nodes (connected to your extension node), will have that data set as the incoming training data set.  

View solution in original post


All Replies
Solution
‎10-17-2016 04:05 AM
SAS Super FREQ
Posts: 306

Re: Dynamic dataset name as result of Extension Node

I think all you want to do is call the data set &EM_EXPORT_TRAIN, then any subsequent nodes (connected to your extension node), will have that data set as the incoming training data set.  

Contributor
Posts: 22

Re: Dynamic dataset name as result of Extension Node

Posted in reply to WendyCzika

Hello Wendy Czika.

 

I think that's it!

 

My final code block, now, it's like this:

----------------------------------------------------------------------------------------------------

DATA final_client_dataset;

    MERGE client_dataset_1 client_dataset_2 client_dataset_3;

    BY client_id;

RUN;

----------------------------------------------------------------------------------------------------

 

What you say is to put another code block, something like this and the incoming node (for example a Metadata Node) will automatically use it?

 

----------------------------------------------------------------------------------------------------

DATA &EM_EXPORT_TRAIN;

   SET final_client_data_set;

RUN;

----------------------------------------------------------------------------------------------------

 

Thank you very much! I'll try it next Monday.

 

Contributor
Posts: 22

Re: Dynamic dataset name as result of Extension Node

Posted in reply to WendyCzika

Thank you! It works!

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 278 views
  • 0 likes
  • 2 in conversation