|
Erick, As a given user profile can be in use at more than one work station at a time I would suggest looking at the List Job API (QUSLJOB) which can be found in the Work Management category of system APIs. If you had a user space named QTEMP/DEVICES the following call would get you a list of all active jobs initiated by VINING: call qusljob ('DEVICES QTEMP' 'JOBL0100' '*ALL VINING *ALL' '*ACTIVE') You could then run through the generated list and use the job name to determine each work station in use. Using this approach will not catch jobs that have been swapped to VINING from another profile but I don't think you're looking for that type of activity. You will need to filter out jobs associated with the user profile that are not interactive (see Job type returned with each list entry). Bruce > >I am having trouble finding an API that can retreive the current work >station of a user profile that is currently logged in. I know that RTVJOBA >will retrive the work station for the current job, but this command does not >contain a parameter for the specific user profile. > >Thanks in advance for the help. > >Erick > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.