× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: CPF3130
  • From: Boris Goldenberg <bpcsguru@xxxxxxxxx>
  • Date: Mon, 29 Nov 1999 15:16:56 -0800 (PST)

As others pointed out, you need an exclusive lock to perform a CLRPFM.  Another
way is write a quick RPG program which will issue one SQL command:
   delete from testfile
Using this technique you don't need an exclusive file lock, but it runs slower.

Regards,
Boris Goldenberg

--- Klein Ron <ron.klein@brctsg.com> wrote:
> Hi All,
> 
> We have a CL program which needs to do a CLRPFM before the RPGILE program
> starts to write to it.  Right after the CLRPFM we do a MONMSG CPF3130.  When
> we run the program it still blows up with the message that a CPF3130 has
> occurred because the file is in use.  And yes it is, we were holding it open
> with DBU.  Then I tried an ALCOBJ with the same MONMSG and go to the end of
> the program on that error; same result.  What am I doing wrong?  
> 
> TIA
> 
> Ron
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.