Tip

Enhanced method for displaying users' sessions

Our Help Desk often gets calls from users who get hung up in AS/400 applications, Operational Assistant, Working with Spool Files, etc. I took last month's winning tip and made it more dynamic. Rather than just pressing enter and F9 to restart the DSPSCRN command to view a user's screen I set it up to view all users ACTIVE AS/400 screens. It also gives the MIS or Help Desk staff person the ability to refresh the screen to display user screens as they update their screens or navigate to other screens.

The RPG program CUGDSP calls a number of CLPs to build the ACTIVE list and omits SYSREQ or GROUP jobs. Selecting these types of jobs would make the original program hang. After a user screen has been selected to view, the program also requests permission to view the screen as well as identifying to the user the person viewing the screen. This is to prevent MIS or Help Desk staff of viewing user screens without the user knowing. If the user gives permission, then the MIS or Help Desk person can view the screen otherwise the program returns to the list active user screen and awaits another selection or F3 to exit the program. When enter is pressed the program will refresh the screen and display the current state of the user's screen. If F3 is pressed the screen exits and refreshes the list active user screen.

The program will also check to ensure that the user session selected to view is still ACTIVE and also omitting the session that CUGDSP is running on.

Other information available is device number, user profile, job number, user name, out queue, message notification, and whether the user has a group profile. This information all becomes very important when trying to troubleshoot problems.

View Code For This Tip

Display screen of Active User Sessions






































This was first published in June 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.