BookmarkSubscribeRSS Feed

Asked & Answered: How to run SAS Enterprise Miner batch processing code in Model Studio

Started ‎03-06-2019 by
Modified ‎03-05-2019 by
Views 1,823



97403_banner_Asked&Answered_aqua.pngI have batch processing code from a process flow diagram in SAS Enterprise Miner.  Is there any way I can use it in a Data Mining and Machine Learning project in Model Studio?  What if it includes High Performance Data Mining nodes?


There are certain caveats, but in many cases, yes, you can include your batch processing code in the Batch Code node of Model Studio to be able to assess and compare your SAS Enterprise Miner models in a Model Studio pipeline.  Here are the steps for the process:


  1. Build a process flow diagram in SAS Enterprise Miner. Your process flow diagram must include a modeling node (which could be a modeling node from the HPDM tab) and end in a Score node.
  2. Right-click the Score node in your diagram and select Export Path as SAS Program. Ensure that Run this path is enabled in the Export Path as SAS Program window. Specify a location to save the batch code and click OK.
  3. In a Model Studio pipeline, add a Batch Code node to your pipeline.  Note that the Model Studio project must have the same target variable metadata as the batch code.
  4. In the Batch Code node properties pane, click Open and navigate to the file that you saved earlier. The batch code that you created in SAS Enterprise Miner is opened in the code editor.
  5. Click the Save icon to save this code. Then click Close.
  6. Continue building your pipeline. When you run your pipeline, the Batch Code node runs alongside all other nodes.


Note that when the Batch Code node runs in Model Studio, a sample of the project data is provided to the SAS 9.4 environment, and the batch code that represents the SAS Enterprise Miner process flow diagram is run on that sample.  Note that if any HPDM nodes are in your process flow diagram, those will run in SMP mode. After the batch code runs, Model Studio retrieves either the DATA STEP score code or the analytic store and EP code. The retrieved code is used to score the full, original data in Model Studio. This scored data is then used to produce the assessment results.


For more information, please see the reference help for the Batch Code node in Model Studio at:


Version history
Last update:
‎03-05-2019 06:29 PM
Updated by:



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags