Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
'[' or ']' not appearing in my EDIT SESSION

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Thu Apr 30, 2009 10:12 am    Post subject: '[' or ']' not appearing in my EDIT SESSION
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Apr 30, 2009 10:17 am    Post subject: Reply to: '[' or ']' not appearing in my EDIT SESSION
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: 6968
Location: porcelain throne

PostPosted: Thu Apr 30, 2009 10:19 am    Post subject:
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: 401
Location: Mumbai

PostPosted: Thu Apr 30, 2009 10:27 am    Post subject: Reply to: '[' or ']' not appearing in my EDIT SESSION
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: 1013
Location: India

PostPosted: Thu Apr 30, 2009 11:18 am    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 30, 2009 5:03 pm    Post subject:
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: 1013
Location: India

PostPosted: Thu Apr 30, 2009 7:05 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 30, 2009 7:15 pm    Post subject:
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: 1013
Location: India

PostPosted: Thu Apr 30, 2009 7:54 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 30, 2009 8:03 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts Mass comment and edit elixir1986 IBM Tools 3 Thu Mar 02, 2017 10:09 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us