|
Yes, I found out that the msgid does not get posted unless it is an exceptional (system or machine) error. CPF5027 is not such error. We looked at the message data to see if the error was a lock when the msgid was blank. Christopher K. Bipes mailto:ChrisB@Cross-Check.com Sr. Programmer/Analyst mailto:Chris_Bipes@Yahoo.com CrossCheck, Inc. http://www.cross-check.com 6119 State Farm Drive Phone: 707 586-0551 x 1102 Rohnert Park CA 94928 Fax: 707 586-1884 -----Original Message----- From: Rajeev Asthana [mailto:Rajeev_Asthana@paramount.com] Sent: Tuesday, June 29, 1999 10:51 AM To: RPG400-L@midrange.com Subject: RE: Record Lock message Chris, I get *blanks in msgid field but 'Recod locked..' in msgdata field. Rajeev. Chris Bipes <ChrisB@cross-check.com> on 06/29/99 07:40:12 AM Please respond to RPG400-L@midrange.com Subject: RE: Record Lock message Rajeev, CPF message IDs are in the SDS at 40-46. I could not remember exactly what the message ID was. CPF5027 may not have been correct. What message ID is in 40-46 when you get the "record 8989 already locked by job" message? What about the other message IDs I posted? We use to do this in our telemarketing programs when we wanted to present the next available record to the user. We now have moved away from record presentation and telemarketing. The code has been archived so I cannot just look it up. My memory is also failing me.. Christopher K. Bipes mailto:ChrisB@Cross-Check.com Sr. Programmer/Analyst mailto:Chris_Bipes@Yahoo.com CrossCheck, Inc. http://www.cross-check.com 6119 State Farm Drive Phone: 707 586-0551 x 1102 Rohnert Park CA 94928 Fax: 707 586-1884 -----Original Message----- From: Rajeev Asthana [mailto:Rajeev_Asthana@paramount.com] Sent: Monday, June 28, 1999 5:55 PM To: RPG400-L@midrange.com Subject: RE: Record Lock message Chris, Though I'm able to pull Message Desciption- "record 8989 already locked by job" , I'm unable to get Message ID value CPF5027. Is there anything special I need to do? Thanks, Rajeev. Chris Bipes <ChrisB@cross-check.com> on 06/28/99 11:51:41 AM Please respond to RPG400-L@midrange.com Subject: RE: Record Lock message OVRDBF FILE(YOUR FILE) WAITRCD(*IMMED) This will cause the program to error immediate. In your CHAIN/READx statement put an indicator in the error position. When this error is on, test for message CPF5027, CPF5032 & CPF9853. The program status data structure hold the Job that has the lock on the record. See the message file QCPFMSG for detail on the format of these messages. I do not remember exactly which one is presented. Check your job logs for the message you get when a record is locked. Position 40-46 holds the cpf message id and 91-170 hold the message data. Another trick to skip the locked record and advanced to the next record is to SETGT on the key of the locked record and then do your reade. This is great for having multiple users working on the first available record in a group. i.e. telemarketing. Christopher K. Bipes mailto:ChrisB@Cross-Check.com Sr. Programmer/Analyst mailto:Chris_Bipes@Yahoo.com CrossCheck, Inc. http://www.cross-check.com 6119 State Farm Drive Phone: 707 586-0551 x 1102 Rohnert Park CA 94928 Fax: 707 586-1884 -----Original Message----- From: Rajeev Asthana [mailto:Rajeev_Asthana@paramount.com] Sent: Monday, June 28, 1999 10:31 AM To: rpg400-l@midrange.com Subject: Record Lock message Hi All, In my application, if someone is using a record and someone else is trying to use it, a message should be displayed immediatly stating the same together with the user's name who is holding the record. What can be the better way to do this? Any help appreciated. Thanks in advance. Rajeev. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. 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-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.