View previous topic :: View next topic
|
Author |
Message |
jerryte
Active User
Joined: 29 Oct 2010 Posts: 203 Location: Toronto, ON, Canada
|
|
|
|
The below REXX code
Code: |
line = 'Slash / Backslash \'
SAY line |
will display correctly if run from the TSO ready prompt:
Code: |
Slash / Backslash \ |
but will show a colon ":" instead of "\" if run in ISPF
Code: |
Slash / Backslash :
*** |
Any ideas why? I have searched using google and no luck. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2596 Location: Silicon Valley
|
|
|
|
Can you explain "if run in ISPF" in more detail? Where is this SAY instruction and how do you execute it?
--
My guess is some kind of codepage issue. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Maybe check the Terminal Type under ISPF Settings |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
In ISPF 7.3 check the value for variable ZTERMCID. Mine show 01047 and I can SAY backslashes. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1341 Location: Bamberg, Germany
|
|
|
|
I would assume that ISPF in BATCH is TS's problem. |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 203 Location: Toronto, ON, Canada
|
|
|
|
The Rexx exec is in a pds allocated to SYSPROC dd. If I execute this using "TSO" exec-name from any ispf panel or using option 6 then I see ":" instead of "\".
ZTERMCID = 0037 I assume this is a codepage. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2147 Location: USA
|
|
|
|
The used terminal emulator may affect the visuality of characters.
I would try too:
Code: |
Say ‘/ is in hex ‘ C2X(‘/‘)
Say ‘\ is in hex ‘ C2X(‘\’) |
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
is it just you, or do all your colleagues have the same issue? |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
what is your ZTERMCS value? |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1341 Location: Bamberg, Germany
|
|
|
|
Willy Jensen wrote: |
what is your ZTERMCS value? |
It should be 0695 for most installations. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2596 Location: Silicon Valley
|
|
|
|
Can you edit the rexx program and show us the hex value of the '\' character? |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 203 Location: Toronto, ON, Canada
|
|
|
|
ZTERMCS = 0697. It is not modifiable
In the settings the Terminal Type is "4" 3278A
Code: |
line = 'Slash / Backslash \'
98984747E98A8464C889A98A84E7
39550E0D2312801021322312800D
----------------------------
SAY line
ECE4989844444444444444444444
2180395500000000000000000000
---------------------------- |
Hex value for backslash is E0 |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
Well, you can set both codepage and charset with the ISPSTART command.
However I just tried ispstart panel(isr@prim) CHARSET(697) and I could not reproduce the problem.
I have screen format 3 (max) and terminal type 7 (3278CF). I tried term type 4 and still could not reproduce the problem. |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 203 Location: Toronto, ON, Canada
|
|
|
|
I coded a simple COBOL program to DISPLAY a backslash. This works properly when run in batch but when run using TSO CALL within ISPF then the same issue. Somehow it is ISPF that is changing the character. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
what happens when you run it from TSO READY (no ISPF)? |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 203 Location: Toronto, ON, Canada
|
|
|
|
Willy Jensen wrote: |
what happens when you run it from TSO READY (no ISPF)? |
It displays the backslash.
It is ISPF that is translating the character but not sure why or where to fix this. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2596 Location: Silicon Valley
|
|
|
|
Admittedly, I am weak on codepage issues because I remember only using codepage 037 (or was it 1047?). So I searched for ZTERMCS as was suggested by Willy.
I found these other variables that might come into play:
ZTERMCP (terminal code page)
ZTERMCS (terminal character set)
ZTERMCID (terminal CCSID)
What are your settings? |
|
Back to top |
|
|
|