To add to Stefan's answer. Don't forget to swap back when you are done.

On Wed, 2021-09-15 at 19:48 +0200, stefan@xxxxxxxxxx wrote:
You can change the current user using QSYGETPH/QWTSETP/QSYRLSPH in your

Best regards


No trees were killed in the sending of this message, but a large number of
electrons were terribly upset.

Stefan Tageson
+46 732 369934

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>> On Behalf Of
DEnglander--- via MIDRANGE-L
Sent: Wednesday, September 15, 2021 7:38 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: DEnglander@xxxxxxxxxxxxxxx<mailto:DEnglander@xxxxxxxxxxxxxxx>
Subject: CPDB053 message

I am trying to use the QNTC file system to copy a IFS file to a windows
server folder via QNTC.

I can get it to work manually by using the CPY command under my own userid,
so I know this works.

I then wrote a CL that I also know works when I run it under my userID. I
then asked the Network admin to set up a userid on our IBM i that has the
correct permissions to this QNTC folder, which he did. I then changed the CL
to run as *OWNER, not used Adopted Authority, and changed the Owner to the
userid the Admin set up. I get the error message above when trying to use
the same CL. The IBM documentation says the QNTC accesses Windows based on
the current userid.

Does anyone know if it is possible to have the QNTC shares accessed using
the CL object's Owner instead of the User running the job? I want to avoid
having the Admin give each user who sends files to this windows share access
to the share since it is used for archiving only.

Thank you,


"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments
accompanying it) contain confidential information belonging to the sender.
The information is intended only for the use of the intended recipient. If
you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance on
the contents of the information is strictly prohibited. Any unauthorized
interception of this transmission is illegal under the law. If you have
received this transmission in error, please promptly notify the sender by
reply e-mail, and then destroy all copies of the transmission."
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx> To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives at

Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related

Help support by shopping at with our affiliate link:

[] Kevin Bucknum
Senior Programmer Analyst
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550


This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.

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