BookmarkSubscribeRSS Feed
IgorR
Quartz | Level 8

Hi!

I have Process Flow with more then 10 programs, and each program is between 400 to 500 rows of code.

Today I need to give him date, run it and wait two hours to end. Repeat 5 or 6 times.

I want to give him list of dates and run it at night to get al the results next morning.

 

The question - Can I loop the whole Process Flow without much programming effort and not to make changes to the programs code?

 

Thank you in advance.

4 REPLIES 4
sbxkoenk
SAS Super FREQ

Hello,

 

Is this an Enterprise Guide Process Flow??
If yes, I will move this topic to a more appropriate board:

Home > Programming > Enterprise Guide

 

If it's matter of pure programming in SAS Studio or Display Manager, I can easily help you out, ... but this is about looping through an EG-process flow multiple times I am afraid. Meanwhile I have forgotten how to do that.

 

BR, Koen

IgorR
Quartz | Level 8

I'm using SAS Enterprise Guide 8.3 .

I have Process Flow that include many Programs that run one by one, after I defined global variables that all these programs use.

I just want to save a lot of manual work here.

Patrick
Opal | Level 21

If you store your programs to an external location (on disk) then you could just write a single program with %include statements - and then of course you can wrap a macro loop around these %include statements for your dates. ...or you just generate the code with the %include statements once per date.

To my knowledge EG itself doesn't provide such a loop mechanism and any approach I know of needs the code stored externally (showing as icon with the little arrow). 

Patrick_0-1701943227136.png

 

And as an outlook for you: Under SAS Viya using SAS Studio Flow also such more operational requirements are fully supported.

yabwon
Onyx | Level 15

@IgorR 

 

Code export can be done by:

yabwon_0-1701945489100.png

 

But if I were you I would go one step further. I would split the one huge exported file into separate macros, and then wrapped it up in a SAS Package, to have it:

1) modular,

2) to have it in single file,

3) to be able call its content in any SAS interface (including DMS, Studio, or even "future to be" Workbench), not only EG.

 

Detailed tutorial on how to develop and use SAS Packages is here.

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



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

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 499 views
  • 0 likes
  • 4 in conversation