Hi !
I have a problem. I want to do a LOOP on SAS Data Integration Studio and execute this Loop until the value in my table is equal 1.
For example :
The user writer code generate a variable "file_test" in the table work.test
I want to make a LOOP with the LOOP transformation (no user writer code) to execute the loop until the value of "file_test" equal 0 and if the value of "file_test" = 1 then stop the LOOP.
Is it possible ?
The version of SAS DIS is 4.9
Thanks 🙂
Hello LinusH,
First of all thanks for your reply !
The operation of the process is as follows:
The DIS job should run every 5 minutes by searching a directory for a specific file.
The macro loops as long as the file is not found. If the file is found, it stops.
How can I set up a condition in my program that runs the DIS job every 5 minutes to check for the presence of the file and does not run after the file is found?
I can use the USER WRITER transformation, as you said the LOOP transformation doesn't work for this.
Best regards,
Super !! you confirm all iwas thinking :)))
Thanks a lot 🙂
Best regards,
Stefan
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.