Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 
Changing color of say command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
anirudh1985
Currently Banned

New User


Joined: 22 Aug 2007
Posts: 66
Location: bangalore

PostPosted: Tue Jun 03, 2008 6:24 pm    Post subject: Changing color of say command
Reply with quote

Is there a way we can change the color of say command. What I intend to do is compare two files and if they're unequal, then at the console the contents of two files must be displayed but in different colors say green for file1 and red for file2.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jun 03, 2008 6:33 pm    Post subject: Reply to: Changing color of say command
Reply with quote

No. REXX has no control over the terminal screen. TSO does, but I've honestly never seen or heard of a TSO process that involved color.

The only facility that I can think of is to use an ISPF panel for your output display. You CAN define colors for fields in a panel definition.

Related links:

z/OS V1R7.0 TSO/E REXX Reference.

z/OS V1R9.0 ISPF Dialog Developer's Guide and Reference.

z/OS V1R9.0 ISPF Services Guide.

z/OS V1R9.0 ISPF Edit and Edit Macros.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10293
Location: italy

PostPosted: Tue Jun 03, 2008 7:28 pm    Post subject: Reply to: Changing color of say command
Reply with quote

Quote:
What I intend to do is compare two files and if they're unequa


why reinvent the wheel, what' s wrong with ISPF superc ??
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2069
Location: Silicon Valley

PostPosted: Wed Jun 04, 2008 2:48 am    Post subject: Reply to: Changing color of say command
Reply with quote

I prefer to use the editor and then use the COMPARE command to show the differences with another file. I think it uses SUPERC under the covers.

Instead of side-by-side, they lines are interleaved, with only changes being highlighted.

========
If you really want to use SAY:
Code:

/*rexx */                       
Say              'HELLO, WORLD!'
Say '1D60'x ||   'HELLO, WORLD!'
Say '1D38'x ||   'HELLO, WORLD!'
Say '1DC8'x ||   'HELLO, WORLD!'
Say '1D40'x ||   'HELLO, WORLD!'

but probably not supported to use Say in this way.
Back to top
View user's profile Send private message
anirudh1985
Currently Banned

New User


Joined: 22 Aug 2007
Posts: 66
Location: bangalore

PostPosted: Wed Jun 04, 2008 10:03 am    Post subject:
Reply with quote

Thanx a lot guys..I will definitely look into the reference ....we are developing a tool in rexx...so ihad to start with file comparison
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 4 Sat Aug 19, 2017 2:33 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us