IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX and 3270 highlighting


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Harold Barnes

New User


Joined: 27 Oct 2015
Posts: 33
Location: United States

PostPosted: Fri Sep 20, 2019 5:26 am
Reply with quote

Years ago on a platform far far away.
On VM I used to code something like:
Code:
/* REXX */
 say '1dc8'x || "Blah Blah" || '1dc4'x


That would turn highlighting on ('1dc8'x) and off ('1dc4'x).

I tried to do the same on z/OS but it doesn't highlight.
On VM I was using a real 3278. Now it's an emulated 3279 on windows.

Maybe my memory is shot?
Is there a way to highlight text?
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Sep 20, 2019 11:36 am
Reply with quote

I do not know how TSO Rexx sends the string to the terminal. As an experiment I wrote and ran this little program.
Code:
TESTTPUT CSECT
         USING *,12
         SAVE  (14,12)
         LR    12,15
         LA    0,L'STRING
         LA    1,STRING
         TPUT  (1),(0),R
         RETURN (14,12),RC=0
MSG      DC    C'NOT HIGH LIGHTED '
         DC    X'1DC8',C'HIGH LIGHTED',X'1DC4',C' NOT HIGH LIGHTED'
STRING   EQU   MSG,*-MSG
         END   TESTTPUT
The TPUT macro is the basic macro used by TSO to send a message to the terminal.

The result was unexpected. The first NOT HIGHLIGHTED and HIGH LIGHTED text strings seemed to be the same, and the NOT HIGHLIGHTED string at the end was (presumably) not highlighted. I'm not sure what my emulator does with this, but I've fiddled with the standard setup to produce more pleasing results - pleasing, to my eyes, anyway. It does suggest regular TSO TPUT sends highlighted text, so highligting it again is not - I think - going to change things, but the 1dc4 took, well it did something. I installed this emulator 6 years ago; what I did then, and I did something, I cannot recall.

The other issue is, did the codes in your SAY string get put through or did SAY remove them?
Back to top
View user's profile Send private message
Harold Barnes

New User


Joined: 27 Oct 2015
Posts: 33
Location: United States

PostPosted: Sat Sep 21, 2019 3:27 am
Reply with quote

I copied and ran your elegantly simple program.
Nu surprises here.
The x'1DC8' produced :H
The x;1DC4' produced :D

No highlighted text.

Thanks Steve for the validation. I'm going to blame it on the emulator.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Sat Sep 21, 2019 5:57 am
Reply with quote

Harold Barnes wrote:
...Thanks Steve for the validation. I'm going to blame it on the emulator.
No, I suspect Rexx SAY may have fiddled with the data. Don't forget, too, that the zVM/CMS and TSO Rexx stacks are not identical. Finally, TSO TPUT could have fiddled with the data. About the only way to fully check this out is to learn enough 3270 data streams and use TPUT FULSCRN to really figure it out.

I have my emulator installed on a Windoze 10 machine which I rarely use. I discarded my little TESTTPUT program and I'm not about to recreate it.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed Nov 06, 2019 10:37 am
Reply with quote

I am retired and do not have access anymore...

but I recall that you had to use the 'ASIS' parameter of the TPUT macro.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Nov 12, 2019 3:04 pm
Reply with quote

I have done something similar in the past, and hopefully still have the code.

If I do, I will try and remember to post it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top