Does SYSVIEW provide a CLEAR or CLRSCRN routine?

Document ID : KB000014611
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

With all of the REXX code in SYSVIEW, does SYSVIEW provide a CLEAR or CLRSCRN type of routine that we can call from a REXX program to clear the screen?

Answer:

While it is not documented, sample code is shipped in sysviewHLQ.CNM4BREX(TESTAPI) that uses a clear screen function. In SYSVIEW's load library (sysviewHLQ.CNM4BLOD) a program is shipped called GSVXCSCN. If the REXX which is running has access to SYSVIEW's load library, then the program can be called and the screen will be cleared. This is done through the SYSVIEW REXX API or can be invoked in any TSO REXX type environment. The following must be added when a clear screen is desired:

ADDRESS TSO GSVXCSCN

Please note, the screen clear will be somewhat asynchronous to inline REXX. If data is being outputted very quickly, the screen clear might not line up with where it is coded all the time. Unfortunately, TSO is in control of the output and the clear.