|
Charles: True, it probably won't help. But it has made me think about the potential. If the interactive program does use a data queue to monitor display file wait times, there's no reason another program can't send entries to it. If the entry contained something like "Hey! Wake up! Unlock that record!", the interactive program could be written to react. It'd take some up-front design work and some careful interfacing, but I see no reason it couldn't be done. Tom Liotta rpg400-l-request@xxxxxxxxxxxx wrote: > 10. RE: How to unlock a record in an interactive job after 'x' > amount of time has passed (CWilt@xxxxxxxxxxxx) > >That doesn't help him. > >He wants to be able to unlock the record from the program locking it. > >WAITRCD affects how long some other program will wait for a locked record. >It has no effect on the program locking the record. > >> -----Original Message----- >> >> >Is there a way from a RPGLE interactive program to track how >> long it has a >> >record locked in update and after a certain amount of time >> has elapsed, >> >gracefully unlock the record. Then the interactive program >> would show some >> >info message to inform the User that they will need to retrieve the >> >transaction again. >> >> the WAITRCD attribute on a database file detrmines >> how long the program will wait until a CPF message is returned >> to your program. >> The default is 60 seconds (but can be changed / temporarily >> overridden). >> >> By monitoring for the error and counting the number of times >> you can determine the length of time. -- Tom Liotta The PowerTech Group, Inc. 19426 68th Avenue South Kent, WA 98032 Phone 253-872-7788 x313 Fax 253-872-7904 http://www.powertech.com __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.