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

'[' or ']' not appearing in my EDIT SESSION


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Apr 30, 2009 10:12 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Thu Apr 30, 2009 10:17 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Apr 30, 2009 10:19 am
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Thu Apr 30, 2009 10:27 am
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Apr 30, 2009 11:18 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 30, 2009 5:03 pm
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Apr 30, 2009 7:05 pm
Reply with quote

Robert,
Just found out, while turning the HEX ON. I am able to see the following
Code:
000001                           
       AB
       DD


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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 30, 2009 7:15 pm
Reply with quote

What's the XML encoding?

Since it's not liking the AD/BD, try BA/BB.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Apr 30, 2009 7:54 pm
Reply with quote

BABB resulted in
Code:
EECCCEE4DDCCDE
24335220962593

Encoding is
Code:
<?xml version="1.0" encoding="ibm-1140" standalone="yes"?>


Thank You,
Sushanth
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 30, 2009 8:03 pm
Reply with quote

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
View user's profile Send private message
Rod Hittle

New User


Joined: 21 Nov 2007
Posts: 4
Location: Omaha, NE USA

PostPosted: Thu Dec 02, 2021 7:33 pm
Reply with quote

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
View user's profile Send private message
fcaron69

New User


Joined: 17 Feb 2023
Posts: 1
Location: Canada

PostPosted: Fri Feb 17, 2023 9:58 pm
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Need help to resolve a hard edit COBOL Programming 8
This topic is locked: you cannot edit posts or make replies. Need help to resolve a hard edit COBOL Programming 4
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top