Hi there,
Can somebody give me guideline on how to achieve this using SAS DI loop transform...
Flow is SAS Base Table =====> Table Loader======> Staging Table
This SAS Base Table has structure of
Column1 Column2 Filename
1 2 file1.csv
2 3 file2.csv
3 4 file3.csv
Now in my Final Staging Table I have unique ID which I am getting from my audit table
Column1 Column2 Filename File_ID
1 2 file1.csv 367
2 3 file2.csv 385
3 4 file3.csv 396
So basically I need to iterate this job for all groups of filenames from my input table. I hope I am clear with my requirement and making sense....
Create the inner job that you want to run in the loop. the job should have INPUT parameters defined.
These input parameters will be mapped later.
1. Put a LOOP transformation and link it to stage-table.
2. Open 'Parameter Mapping' tab of the LOOP and map the parameters you want, Column1 and File_Id in your case.
Put the END LOOP and the end.
Run the job.
Create the inner job that you want to run in the loop. the job should have INPUT parameters defined.
These input parameters will be mapped later.
1. Put a LOOP transformation and link it to stage-table.
2. Open 'Parameter Mapping' tab of the LOOP and map the parameters you want, Column1 and File_Id in your case.
Put the END LOOP and the end.
Run the job.
Thank you very much.. it worked... now can somebody help me in integrating this in one job itself... because this is for loading csv files in table and we will have around 50 fact tables so this will create about 100 jobs which are difficult to maintain......
Please find attached snapshot of my outer and inner job... can we do both these things in same job is my question...
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.