• Subject: Re: CPF3130
  • From: Jim Langston <jlangston@xxxxxxxxxxxxxxxx>
  • Date: Mon, 29 Nov 1999 13:44:10 -0800
  • Organization: Conex Global Logistics Services, Inc.

I just wrote a small program:

PGM

     CLRPFM  FILE(JIMCONEX/TESTING)
     MONMSG MSGID(CPF3130) EXEC(SNDPGMMSG ('Couldn't +
                             clear the file.'))

ENDPGM

If I run it without locking the file, it runs.  If I run it while having
the file locked, I receive the message in the MONMSG command.
That is, everything works as advertised.

My thinking is you don't have the MONMSG command coded right?

Regards,

Jim Langston

Klein Ron 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?
>

+---
| 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
+---

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].