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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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