On 3/16/2011 8:39 PM, CRPence wrote:
If having "used the same concept in RPG and it worked great"
sufficiently parallels the MI invocation, then probably not "an
O_INHERITMODE flag issue". So if the RPG had performed the same
and open() as performed by the same user into the same directory yetdid
not exhibit the same "no permissions" outcome, then that flag is
probably not germane; at least seems improbable unless the openFlag
The open() API has optional parameters, prototyped in C by "..." and
prototyped in RPG by OPTIONS(*NOPASS). Parameters are passed
differently when the compiler knows that some of them are optional.
RPG, if you don't code OPTIONS(*NOPASS) on the optional parameters, the
API might interpret the optional parameters incorrectly even when they
I'm just wondering if the other mechanisms to call open() are not able
to pass the optional parameters correctly.
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MI400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.