BookmarkSubscribeRSS Feed
smj1
Calcite | Level 5

I am given an assignment on KNN with partitioned data; the instructor requests we join SAS code node to file import, and an external code below. Unfortunately the code runs endlessly each time I create a project. 

DATA&EM_EXPORT_TRAIN &EM_EXPORT_VALIDATE;
SET&EM_IMPORT_DATA;

IF Validation=1 Then output&EM_EXPORT_VALIDATE;
else if Validation=0 Then output&EM_EXPORT_TRAIN;

Run;

1 REPLY 1
sbxkoenk
SAS Super FREQ

Hello,

 

Is this Enterprise Miner?

Is it the File Import node that keeps running or the subsequent Code Node?

 

I think there's nothing wrong with your code (although the code as you have copy/pasted it is not having spaces where you need spaces; you need at least one space in front of &)

DATA &EM_EXPORT_TRAIN &EM_EXPORT_VALIDATE;
 SET &EM_IMPORT_DATA;
 IF      Validation=1 then output &EM_EXPORT_VALIDATE;
 else if Validation=0 then output &EM_EXPORT_TRAIN;
run;

Koen

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 500 views
  • 0 likes
  • 2 in conversation