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 --<-----

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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