|
> Now, onto my question. I have several programs that create temp files for > purposes of migrating and mining data. Although I do not see it happening > very often, there is the possiblity that two users could inavertently run > into each other. Is there an easy way for me to do the following: If you are building truly temporary files, put them in QTEMP. The system creates a unique QTEMP library for each job, and as you already know, what's in my QTEMP is not accessible by any other job. > > 1. Determine if there is a record lock currently applied to a file and if > so, who has that lock. dsprcdlck somefile > > 2. Lock a file so that nobody else can make changes to it while the program > (s) is running. Have a look at the docs for the ALCOBJ command. Regards, Rich
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.