Page 1 of 1

Sdsf output queue adjustment

PostPosted: Sat Dec 14, 2019 4:08 pm
by jacobscarf
I was wondering if it is any way to change color of specific column. Is it possible to e.g set max-rc column color?

Re: Sdsf output queue adjustment

PostPosted: Sat Dec 14, 2019 4:27 pm
by NicC
Possibly - if you have access to the panel source, know how to code panels and add your modified panel to your panel library concatenation.

Re: Sdsf output queue adjustment

PostPosted: Sat Dec 14, 2019 8:08 pm
by willy jensen
I will say no.
The ARRANGE command can set the column width, but not the color.
SDSF uses the same panel ISFPCU41 for several displays, the actual display is using a dynamic area populated by variable ISFBUF and you cannot influence how SDSF builds that variable, nor can you intercept and modify it. Changing the color specification of the attribute character used for the MAX-RC column will also change the color for other columns using that attribute.
But I would love to be proven wrong, it could be a nice feature.

Re: Sdsf output queue adjustment

PostPosted: Sat Dec 14, 2019 8:27 pm
by prino
Yes, you can customise SDSF panels almost limitless. I'm using a bit of REXX by Doug Nadel that can colour about anything you want to colour, with some added code by me that shows the panel you're on in the address bar at the bottom of the screen. As the code is copyright IBM/Doug Nadel, I cannot share it here. Basically, any SDSF screen is a dynamic area that you can process using panel REXX.

Re: Sdsf output queue adjustment

PostPosted: Sat Dec 14, 2019 9:07 pm
by prino
willy jensen wrote:I will say no.

Not when you've read my PM. ;)

Re: Sdsf output queue adjustment

PostPosted: Sun Dec 15, 2019 11:55 am
by Pedro
I was wondering if it is any way to change color of specific column.


I would argue that you should not change the entire column! Please only change the values that are noteworthy. For example, for MAX_RC:
When (max_rc = 0) then color = normal
When (max_rc <= 4) then color = yellow
When (max_rc > 4 ) then color = red

or similar logic.

Re: Sdsf output queue adjustment

PostPosted: Sun Dec 15, 2019 12:00 pm
by Pedro
Basically, any SDSF screen is a dynamic area that you can process using panel REXX.


In this same situation, I used a rexx panel exit that is called from the )INIT section. The result is the same as using panel rexx, but I thought it was easier to edit / maintain as an actual rexx program. I suppose it is a personal preference.

See my SHARE presentation that describes this:
https://www.share.org/p/do/sd/topic=50&sid=13748

Re: Sdsf output queue adjustment

PostPosted: Tue Dec 17, 2019 2:36 pm
by jacobscarf
Thank you for all replies. I found a bit of Doug Nadel REXX, do i was managed to customize my sdsf. Despite to copyright it's still possible to find it.

Re: Sdsf output queue adjustment

PostPosted: Wed Dec 18, 2019 8:40 pm
by willy jensen
I was proven wrong, good ;) Never be too old to learn new tricks. I have used dynamic area before, but not in a )INIT section. Many thanks to Pedro and Prino.