|
Raul, You can easily change the wait time for locked records with OVRDBF filename WAITRCD(1). You can add program handling of this error by putting an indicator in the LO positions (I/O error) of your CHAIN or READ statement. If that indicator comes on, you have some sort of I/O error. You can check the file's *STATUS to see what exactly what error you got: FLOCK UF E K DISK F KINFDS INFDS IINFDS DS I *STATUS FSTAT I SDS I *STATUS PSTAT I 91 170 PSMSG C KEY CHAINLOCKR 8030 80 = No record found (HI) 30 = I/O error (LO) When this gets a record lock, FSTAT = 01218 PSTAT = 0 PSMSG = RECORD 1 IN USE BY JOB 711466/BUCK/BUCK01. RPG IV is similar, but you don't need the indicators if you don't like them. You can use the %found and %errror instead. Buck Calabro > -----Original Message----- > From: Raul Jager > Sent: Monday, October 18, 1999 9:36 AM > To: RPG400-L@midrange.com > Subject: Blocked records > > When a program tries to read a record that is blocked, it waits a minute > and then gives an error message. Is there a way to get the error > inmediatly, and under my program's control, so I can notify the user in > a easier to understand (for them) message? > > Thanks. > -- > Raul A. Jager W. > Asuncion - Paraguay > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.