<i>i tried compiling as usrprf(*owner) with a profile whose userid and password are the same on both i5 and network, but that didn’t seem to have any effect.</i>
The IFS access methods do not honor adopted authority. The file systems have no concept of ‘adopted authority’.
<i>i see “set job user identity” api’s, “set profile handle” api’s, “set user profile” api’s, “profile token” api’s…… and can’t tell by their descriptions what i should use.</i>
If the program can’t run under users who have matching profiles/passwords, the simplest route is to go with the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/QWTSETP.htm”>Set Profile Handle (QWTSETP, QsySetToProfileHandle) API</a> and the related APIs. The API will change the job’s ‘current user’ until you set it back to the original user.
If you need basic examples, I can supply them. The ‘profile handle’ APIs are pretty simple, but there might be a couple confusions.