Re: User Profile handling in ancient release(s)

Patrik Schindler <[email protected]> Tue, 21 Sep 2021 10:11:09 +0200
Newsgroups gmane.comp.lang.as400.c
Message-ID <[email protected]>
Hello James,

Am 20.09.2021 um 19:40 schrieb James H. H. Lampert via C400-L <[email protected]>:

>> Does anybody remember how user switching was done two decades ago in OS/400?
> 
> According to my V2R3 API manual, chapter 53, it would be done using QSYGETPH and QWTSETP, both of which are OPM APIs, called as programs.

Thanks a lot!

The last three words might be a very important point!

Do I understand correctly that for using these in C, I need to use exec() in some way to get the desired outcome? (I've some experience with C in Linux but none in OS/400 so far.)

> Since they didn't change the user portion of the qualified job name, or the user under which the job appeared in WRKACTJOB, we didn't use them; we simply spawned off jobs under the desired user profile.

Sounds reasonable. Maybe this is a dumb question but: How did you handle dynamic user profile switching? What you write sounds somewhat like "hard coded" in some way.

:wq! PoC

-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/c400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/c400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com