Good day
I have several programs in a batch my aim is to run them at the same time, all these programs are writing to the same dataset however one or two write successfully other fails because of a lock is not available for STAGING.BASE
I researched and get filelockwait but did not work,
libname staging '/sas/prd/mrad/mrd7mdlintu/projects/langanat/rbc_data_quality/sasdata/staging' filelockwait=300;
I also got %macro trylock but I don't know how to use it.
So I kindly need help to be able to tell programs to wait for other programs to finish loading before they start loading to staging.base.
Thanking you in-advance.
regards
Langalife
You do that in a scheduler by setting appropriate conditions.
Or you create a master script that runs all programs in succession.
A simple approach will be for each of the process to write to its own dataset.
Later a batch process can append all of those individual datasets into the desired dataset.
As an alternative explore using SAS SHARE or writing to an RDBMS database.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.