× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello James,

Am 20.09.2021 um 19:40 schrieb James H. H. Lampert via C400-L <c400-l@xxxxxxxxxxxxxxxxxx>:

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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 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.