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



On Fri, Jan 15, 2021 at 3:26 PM Jay Vaughn <jeffersonvaughn@xxxxxxxxx> wrote:

If I have an exit pgm on the above mentioned exit point and in that pgm I want to modify the file that just opened (let’s say clear it)... is that even possible in this situation?
I’ve tried it and it says the file is locked to my current job.. no surprise. So In the exit pgm, before I try to modify I have tried closing the file, CHKIN, RLSIFSLCK and nothing will release the lock to allow me to clear the file.

Am I attempting the impossible?

Oh the method of opening it in this situation is simply an option 5 to display it from a WRKLNK cmd.

I'm not sure if it's impossible, because I don't understand the
specifics of what you're trying to do.

But I will offer this: If you open a (stream) file using DSPF (which
is what WRKLNK option 5 is), you can still do whatever you want to
that file via other means. For example, you can delete (RMVLNK or
WRKLNK option 4) or edit (EDTF or WRKLNK option 2) the file from
another session, and the screen which is showing DSPF will obliviously
keep showing that file until you exit from it, even though the file
may not exist anymore.

Actually, just now I tried opening a file with EDTF, and that doesn't
prevent deletion or modification from another session either. On one
session, use EDTF; then on another use RMVLNK, and the file is gone;
but then on the first session, continue editing and save, and then the
file is back again. Or open dueling edits on two sessions. Still works
(last save wins).

So, it seems that *in principle* just having something open in DSPF
(or even EDTF) shouldn't prevent it from being modified by something
else.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.