× 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.



Rob,

Perhaps I should have described the presumptions I was making.  Obviously, the 
best way to make the data area lock work as we're looking to here is to lock it 
at the very beginning of the program, before any files are opened if necessary; 
if the program can't get an *EXCL lock on the data area, then RETURN with LR 
on.  So, yes, the program would be called in the subsequent job(s), but would 
be cancelled in short order.  I think that's about the best we can hope for.

- Dan Bale
offsite today

---------- Original Message ----------------------------------
From: rob@dekko.com
Reply-To: midrange-l@midrange.com
Date:  Tue, 9 Apr 2002 13:33:15 -0500

>Dan,
>
>If you were to use the data area method, could you call a program that
>accessed that data area, while it was locked by another job?  Yes.  You
>would only have problems when the new program tried to lock the data area.
>
>Same thing as the .dtaara object, is the .pgm object.  The lock would only
>be checked on the .pgm object when you tried to allocate it in the new
>program.
>
>Rob Berendt
>--
>"They that can give up essential liberty to obtain a little temporary
>safety deserve neither liberty nor safety."
>Benjamin Franklin
>
>
>
>
>"Dan Bale" <dbale@samsa.com>
>Sent by: midrange-l-admin@midrange.com
>04/09/2002 01:20 PM
>Please respond to midrange-l
>
>
>        To:     <midrange-l@midrange.com>
>        cc:
>        Fax to:
>        Subject:        Re: Monitor for existing job.
>
>
>Carsten, I just tried ALCOBJ *EXCL on an program object in one job and was
>able to call it in another job.  Which was the gist of what your code in
>the archive post was getting at.  Did I miss something else that your code
>was doing?
>
>In fact, when I do a WRKOBJLCK on that program, I see the job where I did
>the ALCOBJ, but not the job that currently is running it.  I have never
>understood this mystery.
>
>I think that locking the data area is the easiest and most reliable way to
>go.
>
>- Dan Bale
>offsite today



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.