365 pts.
 How can I swap user profile on active job
Hi I  need to find out how to swap user profile on an active job... Is it possible?Devan Hi further to my question on swapping active jobs is that we run LANSA on the AS400. Once the LANSA application opens it automcatically assigns a session to DC@PGMLIB on wrkactjob, even though the user name and password hasn't been entered. This is where we need the job to switch users when the user enters his username and password. . Devan

Software/Hardware used:
ASKED: June 21, 2012  7:03 AM
UPDATED: July 9, 2012  12:04 PM

Answer Wiki:
Profile Handle APIs might do what you are looking for. Google on Profile Handle API for more info --------------------------- Profile Handle APIs might do the work (depending on what the question actually means.) If the question is about reaching into some other 'active' job, then the Profile Handle APIs won't help in the slightest unless the job was created so that the APIs are already in use. Without clarification from the OP, no good answer is possible. Tom
Last Wiki Answer Submitted:  July 9, 2012  12:04 pm  by  devan   365 pts.
All Answer Wiki Contributors:  devan   365 pts. , TomLiotta   110,115 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Define “swap”. What is the purpose?

There are multiple possible ways. The desired result should determine which method is used.

Tom

 110,115 pts.

 

…on an active job

Come to think of it, what does that mean? Is it a job that is already running that you want to change? If so, it’s very unlikely that you can make it happen. It requires significant preparation ahead of time.

Tom

 110,115 pts.

 

Are you needing to run a particular process within the program under a different profile?

 5,730 pts.