Other than using APIs, you could try the following: For users signed on thru 5250 (though possibly disconnected): WRKUSRJOB USER(xxxxxxxxxx) STATUS(*ACTIVE) OUTPUT(*PRINT) JOBTYPE(*INTERACT) To see if they're logged on in any way, including server jobs serving them, use WRKOBJLCK OBJ(xxxxxxxxxx) OBJTYPE(*USRPRF) OUTPUT(*PRINT) The standard kludge for commands that don't have outfiles is to copy the splf to a pf, then read the pf and scan for their equivalent to "none found". For WRKUSRJOB, it's "No jobs to display". For WRKOBJLCK, it's "There are no locks for the specified object". These assume the program has sufficient authority to the commands and profiles to do this.

Reply With Quote