BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
misaochan
Calcite | Level 5

Sorry if this sounds like a basic question, but none of the tutorials I read have addressed it. I've been working on a process flow with multiple tasks and outputs, and now I need to insert a new task in the middle. Say, instead of performing all the later tasks on dataset A, I want to process A with a query builder to filter out some observations, and perform all the later tasks on the new filtered dataset. How do I do this?

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Yes, that's right.  Give it a try!

You'll have to close/save your project first, as Project Maintenance doesn't like to operate on a project while it's loaded up in the project view.  Select Tools->Project Maintenance and it will lead you through the steps.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

View solution in original post

7 REPLIES 7
ChrisHemedinger
Community Manager

There are several methods, but here's the easiest for hitting just a few tasks.  For each of the tasks that you want to "remap", right-click on the task in the flow and select "Select Input Data" to redirect the inputs.  Example:

selectinput.PNG

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
misaochan
Calcite | Level 5

Thanks for the response! Smiley Happy

Hmm, there doesn't seem to be such an option when I right-click. I have Run, Modify, Run Branch, Publish, and then Condition. I'm using EG 5.1. I'll post a screenshot later if needed...

Also, will I need to do this for ALL the following tasks or only the ones that are directly connected to the changed input dataset?

Edit: Oh, there is the Select input data option for some types of tasks (summary tables etc). But not for others, like query builders or filter/sort. Is there no automated way? I know in code you can just save output data to the same name as input data, and the following steps will just use the most recent copy, yes? So maybe using a program to change the input dataset would be better if I have a lot of tasks following it?

ChrisHemedinger
Community Manager

Be sure that you are selecting the task you want to change, and then right-clicking.  That's been in there for several releases.

You need to change only the tasks that directly consume the data set -- the downstream tasks should not need updates unless columns change.  (For example, if you replace use of SASHELP.CLASS with SASHELP.CARS, you'll have problems because they have different variables.)

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
misaochan
Calcite | Level 5

Sorry, I edited my post a short while before yours came in:

Edit: Oh, there is the Select input data option for some types of tasks (summary tables etc). But not for others, like query builders or filter/sort. Is there no automated way? I know in code you can just save output data to the same name as input data, and the following steps will just use the most recent copy, yes? So maybe using a program to change the input dataset would be better if I have a lot of tasks following it?
ChrisHemedinger
Community Manager

Query Builder (and its less flexible cousin, Filter and Sort) are a little special.  You can change the input data within the task itself.

In Query Builder, right-click on the table entry in the tables list and select Properties:

qtable.PNG

Then you can remap the data source with the Browse button:

qtablepick.png

You can also use Tools->Project Maintenance to change a data reference globally across the entire project.  That might be the only way to adjust things for Filter and Sort...

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
misaochan
Calcite | Level 5

Thank you! You mentioned other ways for doing it if there were many tasks to be changed - I assume the Tools->Project Maintenance method would be the best for that?

ChrisHemedinger
Community Manager

Yes, that's right.  Give it a try!

You'll have to close/save your project first, as Project Maintenance doesn't like to operate on a project while it's loaded up in the project view.  Select Tools->Project Maintenance and it will lead you through the steps.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

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!

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
  • 7 replies
  • 1555 views
  • 6 likes
  • 2 in conversation