BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
rmlmrmlm
Obsidian | Level 7

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!

 

1 ACCEPTED SOLUTION

Accepted Solutions
DougWielenga
SAS Employee

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

1 REPLY 1
DougWielenga
SAS Employee

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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

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