SeeView Manual

SeeView Programming
HP NonStop SeeView Manual526355-004
6-10
Test As You Code
Test As You Code
Test your script as you code. In the SeeView program, you can test the code as you
write it by pressing SF15 to execute it. Also, if you are having an intermittent bug, enter
ALTER STMTTRACE ON from the Help page and wait for the bug to occur. A complete
step-by-step source statement trace is made available on the Help page with the actual
script. Entering PRINT * from the free window on the Help page displays the current
values of all local and global variables. As the script evolves, you might circulate a
copy through electronic mail to your users or reviewers and wait for suggestions on
modifications.
Write User Documentation
Once you complete your script, you are ready to write user documentation for the
script. The best way to do this is through the SeeView program.
If you are using a PC, you can use the following technique to make your
documentation more convenient to write. Issue the command ALTER FRAMEALPHA
ON. Then recover by pressing SF14. Go through the script, displaying each screen. As
you do this, use the Save Screen-to-Savefile option (SF11). This option stores a copy
of each screen in TGAL format.
When you have stored all the screens in the EDIT savefile, edit the savefile and write
the documentation for each screen. If your design is top-down, the document will be
organized in the same way, and the organization will be clear.