BookmarkSubscribeRSS Feed
langalife
Calcite | Level 5

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

 

 

2 REPLIES 2
Sajid01
Meteorite | Level 14

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 420 views
  • 2 likes
  • 3 in conversation