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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 755 views
  • 0 likes
  • 2 in conversation