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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 666 views
  • 2 likes
  • 3 in conversation