80 pts.
 How can As400 RPG check if user is logged in
Looking for As400 RPg code to check if user is logged in AS400. All assistance is greatly appreciated. Thanks, Alex Bernardo

Software/Hardware used:
ASKED: May 12, 2009  8:30 PM
UPDATED: May 14, 2009  8:25 AM

Answer Wiki:
Hi Alex, You can use QUSLJOB to list all jobs for your user with status *Active and Job Type 'I' (Interactive). This is an OPM API and yo can use it with RPG400. Regards, Wilson
Last Wiki Answer Submitted:  May 12, 2009  11:34 pm  by  WilsonAlano   2,385 pts.
All Answer Wiki Contributors:  WilsonAlano   2,385 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

I would just use wrkusrjob username.

 365 pts.

 

Hi,

Unfortunately WRKUSRJOB isn’t so handy from RPG.

Regards,

Martin Gilbert.

 23,625 pts.

 

Try allocating the users message queue. Normally it would be allocated to his first Interactive Job.

 2,250 pts.