MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

colored display in REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Mon Sep 28, 2009 3:37 pm    Post subject: colored display in REXX Reply with quote

hi all,
can we display any message in different color. I want to display a message in yellow or any other color using SAY command. Is it possible? what is the syntax ?

TIA, Mayank
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Sep 28, 2009 4:50 pm    Post subject: Reply with quote

dohellwithmf,

http://publib.boulder.ibm.com/infocenter/tivihelp/v3r1/index.jsp?topic=/com.ibm.itnetviewforzos.doc/dqdl2mst28.htm

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Mon Sep 28, 2009 5:38 pm    Post subject: Reply with quote

Kolusu, I'm wondering if the link you pointed Dohell to is for displaying
panel fields in varying colors....

In other words, is there a way to display the message 'hello there' in yellow in the example below ?

Code:
/* REXX */             
myvar = 'hello there' 
say myvar             
exit   
Back to top
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Tue Sep 29, 2009 1:28 am    Post subject: Reply with quote

what about 'playing' with ISRZ messages?

Code:

zerrtp=WORD('NOTIFY WARNING ACTION CRITICAL',3)   
zerrsm=""                                         
zerrlm="This message will be displayed in RED!"   
ADDRESS ISPEXEC "setmsg msg(isrz003)"         
Back to top
View user's profile Send private message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Tue Sep 29, 2009 3:46 pm    Post subject: Reply with quote

Acevedo,
can you pls explain the commands used in this?
What if i want to display messages in blue/green etc....which parameter to change?
Back to top
View user's profile Send private message
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Wed Sep 30, 2009 1:46 am    Post subject: Re: colored display in REXX Reply with quote

dohellwithmf wrote:
I want to display a message in yellow or any other color using SAY command.

The simple answer is: NO.

The "say" command writes a line to the output stream. If it runs in foreground, it displays its output on the terminal. If it runs in background, the output is routed to SYSTSPRT.

There is no formatting of the data stream. And there is no chance to insert attribute characters as in a native 3270 data stream.

If you want to do so, please use ISPF dialog manager services, as others have already mentioned. When you use ISPF messages, you should have a look at the .TYPE parameter when defining a message. The different values of this parameter leads to a different color being used when displaying the message. But you only can switch between white, yellow, and red.

If you use ISPF panels and define a special field for your message, the palette contains 7 colors.

Read the ISPF Dialog Developer's Guide and Reference manual carefully. Undreamt-of possibilities will open up for you. Wink
_________________
Stefan
There are 10 types of people in the world: Those who understand binary, and those who don't.
Back to top
View user's profile Send private message
dohellwithmf
Beginner


Joined: 12 Jul 2007
Posts: 55
Topics: 23

PostPosted: Wed Sep 30, 2009 8:43 am    Post subject: Reply with quote

Thanks for the pointers Stefan !!
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sun Oct 04, 2009 12:17 pm    Post subject: Reply with quote

Some 3270 emulators will support the inclusion of 3270 data stream orders in a Say statement but most will not. Don't depend on it, since most do not support this, and real 3270s do not support it either. Of course, there probably are no real 3270s left, but that is another issue.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group