|(You can download NEWS/400 code from www.as400network.com/code as an AS/400 save file, as separate PC files, as as a PC source code "bundle" file.)|
Another cool API is QEZLSGNU (List Signed-On Users), which lets you quickly generate a list of all the signed-on users. QEZLSGNU places the list in a user space, which you can then operate on using user space APIs to extract the list of users. You can use QEZLSGNU as part of a daily backup program to make sure all users have signed off before you save your data library. The API can even list disconnected users - a useful feature because these users can still lock files. Figure 8 shows a sample API call. For more information about QEZLSGNU, see OS/400 Operational Assistant APIs (SC41-5867). And watch the NEWS/400 Web site, http://www.news400.com, for a working utility, coming soon, that uses APIs QEZSNDMG and QEZLSGNU.
Jean-Jacques Risch, Software Engineer