i have written an rpg/iv program that allows users to maintain certain network pc files from a greenscreen. it uses the /qntc file system to access those pc files. the problem i ran across is: unless the i5 userid and password is identical to the network userid and password, the program is unable to see the files.
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'm looking for api/api's to change the authority the program runs under to a userid/password that has access to those network pc files, and am extremely confused. 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'd greatly appreciate a nudge in the right direction.
DTR Industries, Inc.
i5os v5r4, rpgile
August 23, 2010 2:26 PM
October 22, 2010 9:45 PM