Q: How to list more than 255 characters in GSVXBAT?

Document ID : KB000122845
Last Modified Date : 11/12/2018
Show Technical Document Details
Introduction:
You are writing a batch report in CA Sysview and you are using the GSVXBAT program...
However the screens you display are very wide and you want to have more than 255 characters output from GSVXBAT.
How can this be accomplished.
Instructions:
The SYSPRINT is restricted to 255 characters..
However there is a way to get a larger output report...
There are a few possibilities :
1. If it is not necessary to show every field of the display, you can create a FORMAT that contained only the fields you require. That could, possibly, reduce the output display requirements to fewer than 255 characters width.
2. Rather than using the output from the SYSPRINT DD statement, you can use the PRINT command. The output from this command would go to a separate DD statement which is NOT limited to 255 characters.
3. Rather than using GSVXBAT, the you can use the API. This would require more work on your part, but again, the output would not be restricted to the 255 character width.
4. And finally, you can could open an Idea in the CA Communities that request us to remove the current width limit of 255 characters. This solution, however, can not be implemented overnight and will have to be a longer term objective.

We recommend option 2 for the best option.
To use the PRINT command...
Here a small sample of the PRINT command in GSVXBAT :

//STEP0010 EXEC PGM=GSVXBAT,PARM='LINECNT=100,SHOWINP=YES,MENUOFF'
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINTOFF
COMMAND=(ACTIVITY)
COMMAND=(SET COPYDSN 'SYSV130.PRINT')
COMMAND=(PRINT OPEN)
COMMAND=(PRINT 9999,ME ACT)
COMMAND=(PRINT CLOSE)
COMMAND=(END)
//*