Page 1 of 1

Display a different color in REXX.

Posted: Fri Nov 13, 2015 1:16 pm
by Akshypal
Hi,

In REXX, is it possible to display a message in different colour? I want to display a message in RED or some other colour when using SAY command. Is it possible? What is the syntax should I use?

Thanks!

Re: Display a different color in REXX.

Posted: Fri Nov 13, 2015 4:28 pm
by Akatsukami
In Rexx, no. However you can do so on an ISPF panel.

Re: Display a different color in REXX.

Posted: Fri Nov 13, 2015 4:46 pm
by zprogrammer
Displaying a message in RED is not possible as REXX does not support formatting over the terminal.

Also OTOH, You could check on the SETMSG with zerrtp='ACTION' check if this will help your requirement

Code: Select all

/*REXX*/                                 
 zerrtp='ACTION'                         
 zerrsm=""                               
 zerrlm="Red message"                    
 ADDRESS ISPEXEC "setmsg msg(isrz003)"   

Re: Display a different color in REXX.

Posted: Thu Nov 26, 2015 7:17 pm
by prino
Pandora-Box wrote:Displaying a message in RED is not possible as REXX does not support formatting over the terminal.
Have I got news for you:

Code: Select all

/* REXX */
say x2c(C3114BF0) x2c(1DF8) 'HELLO, WORLD!'
"ispclear" /* or any z/OS ClrScr routine*/
pull
say x2c(C3114BF01DF8) 'HELLO, WORLD!'
"ispclear"
pull
say x2c(C3114BF0 2903 C0F0 41F2 42F6) 'HELLO, WORLD!' x2c(1DF0)
exit

Re: Display a different color in REXX.

Posted: Sun Nov 29, 2015 6:43 pm
by zprogrammer
I am afraid this does not work me :$ or I am missing some links here

Re: Display a different color in REXX.

Posted: Sun Nov 29, 2015 10:46 pm
by Robert Sample
One thing to be aware of -- the terminal type you are using in your terminal emulator (PCCOMM, REFLECTION, HUMMINGBIRD, TN3270, or whatever) must be able to support use of extended attributes. If the terminal type does not support extended attributes, you cannot get a red display no matter what you do.

Re: Display a different color in REXX.

Posted: Mon Nov 30, 2015 2:03 pm
by Akshypal
I am using TN3270 and zOS 1.13 but I am not able to see a different color. Perhaps it would work on OOREXX?

Re: Display a different color in REXX.

Posted: Mon Nov 30, 2015 3:36 pm
by nicc
Works on Tom Brennan's Vista. Changing the language will not help. Besides, I do not know if OO Rexxx is supported on the mainframe yet.