IBM i has CHKOUT/CHKIN commands if you really want to use them. It's been
20 years since I've used them but they are there.

Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects

On Mon, Mar 7, 2022 at 11:40 AM Jack Woehr via WDSCI-L <
wdsci-l@xxxxxxxxxxxxxxxxxx> wrote:

On Mon, Mar 7, 2022 at 10:27 AM <fhildebrandt@xxxxxxxxxxxxxxx> wrote:

it seems to me that the support of RDi for sources in stream files is not
so good as for sources in source files. I detected that when opening a
stream file in LPEX editor the stream file will not be locked. When
members in source files the members will be locked.

That's not how stream file editors work.
Instead, they warn you if a file has been changed outside the editor by
some other process.
The way this works on local editors is notification callbacks provided by
the operating system.
Of course, that doesn't work for RDi because no such callback is available
On the other hand, RDi *could* warn you when you go to save if the file has
been changed outside the editor and offer to save a backup.
This sort of thing is normal in modern programming and there is no user
expectation that a stream file will be locked for editing.
"Lock while I'm editing" is a relic of primitive revision control practices
of 30 years ago.
If you're doing stream file editing of RPGLE source and you're *not*
checking in your code, it's not RDi that's broken :)

Jack Woehr, IBM Champion 2021-2022

Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021

NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you received
this communication in error, please contact the sender and delete/destroy
all copies of this communication immediately.
This is the Rational Developer for IBM i (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

Help support by shopping at with our affiliate

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-2022 by 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.