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

Iterate over %EM_NOMINAL_INPUT, %EM_ORDINAL_INPUT and %EM_BINARY_INPUT

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

Iterate over %EM_NOMINAL_INPUT, %EM_ORDINAL_INPUT and %EM_BINARY_INPUT

Hello.

 

How can I capture the variables returnd by %EM_NOMINAL_INPUT, %EM_ORDINAL_INPUT and %EM_BINARY_INPUT and insert them (the names) in a DATASET.

 

I can't iterate with scan because the length of the string returned by those macros is larger than 65534.

 

Thank you!

 


Accepted Solutions
Solution
yesterday
SAS Employee
Posts: 109

Re: Iterate over %EM_NOMINAL_INPUT, %EM_ORDINAL_INPUT and %EM_BINARY_INPUT

These macros were defined as macros rather than as macro variables due to their (potentially) excessive length.   They are computed from the metadata passed to the SAS Code node when the SAS Code node runs so you would not be able to iterate within the SAS Code node and expect those values to change; however, those values would be defined and updated for any node the SAS Code node was connected to.   Using them allows you to use generic code that will work in a wide variety of places.   Most of the iterative methods available from using the Group Processing nodes in SAS Enterprise Miner would not likely benefit from these differences, however, so it really depends on what you are trying to do.   

Cordially,

Doug

View solution in original post


All Replies
Solution
yesterday
SAS Employee
Posts: 109

Re: Iterate over %EM_NOMINAL_INPUT, %EM_ORDINAL_INPUT and %EM_BINARY_INPUT

These macros were defined as macros rather than as macro variables due to their (potentially) excessive length.   They are computed from the metadata passed to the SAS Code node when the SAS Code node runs so you would not be able to iterate within the SAS Code node and expect those values to change; however, those values would be defined and updated for any node the SAS Code node was connected to.   Using them allows you to use generic code that will work in a wide variety of places.   Most of the iterative methods available from using the Group Processing nodes in SAS Enterprise Miner would not likely benefit from these differences, however, so it really depends on what you are trying to do.   

Cordially,

Doug

☑ This topic is SOLVED.

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

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