Well I continued to pester Google about "errno" even after making my last post. It finally relented and revealed the answer to me. The errno is:
EPERM
3027
The operation is not permitted.
You must have appropriate privileges or be the owner of the object or other resource to do the requested operation.
The test user has *USE authority to the group profile.
And FYI, it appears that qsysetegid does not respect adopted authority.
-----Original Message-----
From: Justin Taylor [mailto:JUSTIN@xxxxxxxxxxxxx]
Sent: Wednesday, October 09, 2013 11:28 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Authority on Java calls
The "qsysetegid" API seems like it should do the trick for me, but I haven't been able to get it to work. I retrieve the GID OK, but the call to qsysetegid fails. The Info Center (the v5r2 one because the 7.1 is down right now) says that errno is set to indicate the error. How do I retrieve the errno? I tried the following, but just get null:
lpErrNo = Qp2errnop();
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.