BookmarkSubscribeRSS Feed
mikemangini
Obsidian | Level 7

This is a very introductory level question that I am sure EG handles in a simple way, but how can I %include an embedded program in my workflow?

Example: Workflow has 2 programs, Program1.SAS and Program2.SAS

Within Program1.SAS I want to %include "Program.SAS"; So basically while Program1 is running tell SAS to take a break, run Program2, then come back and finish Program1.

Mike

3 REPLIES 3
jakarman
Barite | Level 11

Use a code node? That is not different as to coding in Base.

Would be better to build a flow between the nodes that flow is  controlling (embedding) the programs.

The idea is let it have those smaller pieces and than run them with all dependicies.

---->-- ja karman --<-----
mikemangini
Obsidian | Level 7

Thank you for your response. Is the idea with dependencies though to have one program run before the other? How about calling a program from within a program? I could use the %include statement but then it makes me reference the file on the disk. I was hoping for a way to quickly call embedded programs.

jakarman
Barite | Level 11

You can use both of them. If you have your to be embedded program somewhere on the OS you can define a link to that as code in the flow.

In a  code node you can include the file (%include) using the full physical name or you can define a filename ,and then user %include filerf(imbedsource) ;

Too many options is making a choice difficult.     

An yes tos flow is running one program behind the other. You can define prompts to those and doing a split on conditions for a branche  in some value

---->-- ja karman --<-----

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 4465 views
  • 0 likes
  • 2 in conversation