View previous topic :: View next topic
|
Author |
Message |
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi,
This character'[' or ']' is not appearing in my edit session. I am able to type it, when i insert a new line but, when i press ENTER. Its disappearing and that character position is becoming non-editable.
For instance, i am typing a line like this
Code: |
2 pic x(35) value ’ <![CDATA[We should add a <relish>’.
2 pic x(22) value ’ elementin future!]]>’. |
Its becoming & appearing as this
Code: |
2 PIC X(35) VALUE ' <! CDATA wE SHOUDL ADD A <RELISH>'.
2 PIC X(22) VALUE ' ELEMENTIN FUTURE! >'. |
So, What should i do ?
Thank You,
Sushanth |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
check ...
the terminal type in Your ISPF session
the codepage settings for the 3270 sesssion
quite often there is mismatch in the setup for the keyboard and the display
the <NOT> sign is the most blatant example |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Sushanth,
as a work-around:
Code: |
2 pic x(19) value ’ elementin future!’.
2 pic x(02) value x ’ f7f7’. -----or what ever the ebcdic for ] is.
2 pic x(01) value ’>’.
|
I would do the same for [
i don't know the hex for [ and ], you will have to look it up |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
You can also try to define your terminal as a 3278T or APL terminal. Verify these show what you want by looking at the data in HEX. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Guyz,
I googled. And came across couple of websites for EBCDIC conversion tables
Link 1 & Link 2
What surprised me is, there is no square bracket symbols. And moreover, one of the above links stated
Quote: |
EBCDIC did not have square brackets []; on some equipment [ was hexadecimal code AD and ] was BD, this was not "regular issue" EBCDIC. |
I tried AD & BD also, just a couple of dot's came. That's it.
Babu, my Terminal type is IBM-3278-2-E
Is there a solution ?
Thank You,
Sushanth |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
As originally developed, EBCDIC did not support square brackets. Support for them was later added but not in a 100% standard way.
EBCIDC code page 1047 uses AD and BD for the square brackets. EBCDIC code page 037 uses BA and BB for the square brackets. Since you tried the first two without success, try the second pair of hex values. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Robert,
Just found out, while turning the HEX ON. I am able to see the following
The first 2 are square brackets [].In HEX AD & BD appears.
I have compiled the program successfully. But, while the running program. I got an run-time exception.
Code: |
EXCEPTION 0000000136 ATOFFSET00266.
XML DOCUMENT ERROR 0000000136 |
136 = The parser found an invalid start of a comment or CDATA section in element content.
Invalid Start happens to be the '['.
Thank You,
Sushanth |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
What's the XML encoding?
Since it's not liking the AD/BD, try BA/BB. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
BABB resulted in
Code: |
EECCCEE4DDCCDE
24335220962593 |
Encoding is
Code: |
<?xml version="1.0" encoding="ibm-1140" standalone="yes"?> |
Thank You,
Sushanth |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear it's working.
This makes sense -- if you look, ibm-1140 is the same as ibm-037 (Western European) with the euro added. |
|
Back to top |
|
|
Rod Hittle
New User
Joined: 21 Nov 2007 Posts: 4 Location: Omaha, NE USA
|
|
|
|
Thanks Robert Sample and MBabu. That gave me the clues to why ISPF was not letting me type in square brackets. Maybe it is actually z/OS itself. Regardless, I was needing to do some Python programming in Unix System Services and needed to use the square brackets. What did the trick for me was to go to the ISPF Main Menu choose option ‘0 Settings’ and set the terminal type to 3270, which is Terminal type 3. I tried 3278T and a odd thing happened. The characters [ ] I typed using 3278 changed the characters.
000001 $ [ ] ∇ ┘
54A4B4B4B4
B0D0D0A0B0 |
|
Back to top |
|
|
fcaron69
New User
Joined: 17 Feb 2023 Posts: 1 Location: Canada
|
|
|
|
Hello,
For me, to be able to compile Java AND having correct [] displayed (not ݨ), I had to set the Display settings - Host Code Page to 037 English US in Attachmate Extra and Terminal type to option 6 which is 3278T in my ISPF settings.
Thanks for these postings which helped me to find the correct settings.
Franck
Quebec, Canada |
|
Back to top |
|
|
|