Hi guys,
My company recently started using DIS 4.21, but no one has that much experience with it. We had outside help getting what we wanted to do set up, but I am at a novice level with the package. I've got some pictures to illustrate what I'm trying to accomplish.
So basically the process we have in place now is to create some datasets, structure them for upload to our server, and then run a transformation to upload the data.
Right now, I have to run RTEC1 through the process, wait for it to finish, connect RTEC2 to the process, rinse and repeat. I've read through the documentation for DIS and I know that I want to create an iterative job to cycle through all of the datasets.
I created a library (Base) that contains all of the datasets and I used a Library Contents transformation to create a Control Table. Each line of the control table corresponds to each dataset,
I then connected the control table to a Loop to run the tables through the job (the job is illustrated in the first picture). This is where I get lost and my luck with the documentation runs out. In my mind, the loop should read the name of the dataset from the control table, load that dataset into the Table Loader, run it through the upload transformation, and go get the next dataset from the control table. Repeat until finished.
The problem is that I don't know what settings or conditions I need to make to get the Loop to load the first and subsequent datasets into the job. I've been using SAS for awhile so I am comfortable with coding if that's what needs to be done here, but I have very little experience with DIS. Any help will be greatly appreciated. Thanks!!!
Chris
ChrisC,
I don't know if you're still looking for an answer to this, but the previous post were on target. To answer in a bit more detail:
That's probably a lot to take in, so feel free to post follow up questions. Loop is one of the more useful and versatile transformations in DI Studio, so while there is a bit of a learning curve, the payoff is worth it in the number of ways you'll find to use this pattern.
Thanks,
Tim Stearn
Off the top of my head, may have missed something...
You need to pass parameters from the loop to the inner job that is in the loop (SVP Stage Loader).
How?
Setup paramters in the inner job (one of the tabs on the inner job), this will create macro vars that you can use in that job .
Link the parameters created in the inner job to the loop (one of the tabs on the loop) and all should be good
Barry
Hi
As Barry said: The inner job needs a parameter defined (which is a prompt of type "data source").
In the outer job in the loop transformation you then link this parameter (which in the code is a macro variable) to the source column of your control table.
In the inner job you then can use this macro variable (in the example here &ThisSex) to work your magic.
HTH
Patrick
ChrisC,
I don't know if you're still looking for an answer to this, but the previous post were on target. To answer in a bit more detail:
That's probably a lot to take in, so feel free to post follow up questions. Loop is one of the more useful and versatile transformations in DI Studio, so while there is a bit of a learning curve, the payoff is worth it in the number of ways you'll find to use this pattern.
Thanks,
Tim Stearn
Sorry for the delayed response, but I've been traveling. I got the job running and really appreciate everyone's help.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.