View any user's current screen image easily and quickly, without having to determine the job number or name. This is an alternative to the recent tip: Display any user's screen, Yow Wai Fong, May 16, 2002.
Ask the user to hold down the Control key, then press the Pause key on their keyboard (the default for host print). Then view the screen shot of the screen in the user's spooled files. They can easily do this multiple times to produce a series of shots showing screen progression and values in a multi-screen application, plus these remain available until you don't need them any more and delete them. Best of all, it works by default - no coding necessary.
================================== MORE INFORMATION ON THIS TOPIC ==================================
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
- If you want to know how the user is selecting the options right from menu to program execution, use AS/400 command STRCPYSCN. This will show you screen by screen of what the user is selecting. The only disadvantage is you will be one screen behind the user. When you type this command and prompt for it, you have to enter the source device as user's display device for ex:QPADEV0018 and the output device as *requester and press enter, this will send a break message on the user device with options C and G. Ask user to press G. That's it. From then on you can view user's screen. Test this by opening two sessions by yourself. This is very easy to use. Jaganathan Venkatachalam
- After viewing David Jorgensen's tip I remembered that OS/400 itself provides a way to do this with the STRCPYSCN command. You can follow progress on your own screen and/or store the screens in a file. Use the ENDCPYSCN from the user's screen or yours to stop the process. This pair of commands goes back to System/38 days, the iSeries grandfather machine. David Pickett
This was first published in May 2002