473,503 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using [] in z/OS ISPF & emulators

Was curious if anyone codes C on a mainframe in TSO/ISPF and, if so, what
they've done to get brackets ( [] ) recognized by both their terminal
emulator and ISPF itself.

I'm using Attachmate Extra & even though I've mapped my keyboard for
brackets, they end up translated to strange characters in ISPF. I'm able to
type a bracket & it shows up as such on the screen, but once I hit enter, it
gets translated into some strange character.

I guess this is more of a mainframe hardware question, but there aren't any
active mainframe groups that I could find...
Jul 19 '06 #1
5 2357
"John" <so*****@microsoft.comwrote in message
news:Dv*******************@tornado.ohiordc.rr.com. ..
Was curious if anyone codes C on a mainframe in TSO/ISPF and, if so, what
they've done to get brackets ( [] ) recognized by both their terminal
emulator and ISPF itself.
I do most of my editing on the PC side of the fence and then transfer the
files.
Frequently, I build on the PC too, with the SAS/C cross compiler.
I'm using Attachmate Extra & even though I've mapped my keyboard for
brackets, they end up translated to strange characters in ISPF. I'm able
to type a bracket & it shows up as such on the screen, but once I hit
enter, it gets translated into some strange character.

I guess this is more of a mainframe hardware question, but there aren't
any active mainframe groups that I could find...
news:bit.listserv.ibm-main
Jul 19 '06 #2
"John" <so*****@microsoft.comwrites:
Was curious if anyone codes C on a mainframe in TSO/ISPF and, if so, what
they've done to get brackets ( [] ) recognized by both their terminal
emulator and ISPF itself.
One workaround is to use trigraphs. ??( is translated to [, and ??)
is translated to ]. This happens in an early translation phase, so
the translation occurs even in character constants and string
literals. The drawback of trigraphs is that they're ugly (and their
mother dresses them funny). You might need a compiler option to tell
your compiler to recognize them.

Or you can use digraphs. <: is equivalent to [, and :is equivalent
to ], assuming your compiler supports them. (Trigraphs were added in
the 1989 ANSI C standard; I think digraphs were added in an amendment
in 1995). They're slightly (but only slightly) less ugly than
trigraphs, and they're handled in a later translation phase, so the
string literal "<:" still consists of two characters, '<' and ':'.

Or you can use some system-specific solution that I know nothing
about. (Dann Corbit suggested asking in bit.listserv.ibm-main.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jul 19 '06 #3
John said:
Was curious if anyone codes C on a mainframe in TSO/ISPF and, if so, what
they've done to get brackets ( [] ) recognized by both their terminal
emulator and ISPF itself.
Not saying it's the best solution, but when I faced this problem (about a
million years ago now, but never mind that) I found out that EBCDIC did
have a couple of characters that do the job, but unfortunately they're not
the "right" ones, in that they are not the characters that an ASCII-EBCDIC
conversion program replaces [] with. So I mucked around a bit with some
test programs, and discovered the values of characters which, when
translated into EBCDIC, would get translated into the "right" [ and ].

I then wrote another program, which would simply copy its input to its
output, except that whenever it saw a [ or a ], it would instead write out
the appropriate magic value such that, when the program was copied up to
the mainframe and translated into EBCDIC, the conversion would result in a
useful translation.

Sorry I can't remember the codes involved, but if takes you as much as an
hour to write the necessary test programs, I'd be surprised.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 19 '06 #4

"John" <so*****@microsoft.comwrote in message
news:Dv*******************@tornado.ohiordc.rr.com. ..
Was curious if anyone codes C on a mainframe in TSO/ISPF and, if so, what
they've done to get brackets ( [] ) recognized by both their terminal
emulator and ISPF itself.
This can be tricky.
I'm using Attachmate Extra & even though I've mapped my keyboard for
brackets, they end up translated to strange characters in ISPF. I'm able
to
type a bracket & it shows up as such on the screen, but once I hit enter,
it
gets translated into some strange character.
The original IBM screens did not have "[" or "]" keys. There are two places
in the EBCDIC code table where these can occur.
0xAD/0xBD or 0xA0/0xB if I recall properly. Usually you can set a choice of
code pages in 3270 emulators. I found that in IBM PC COmms I needed to use
code page 1047....
I guess this is more of a mainframe hardware question, but there aren't
any
active mainframe groups that I could find...

NO, but there are e-mail lists which get gated to USENET....
Jul 19 '06 #5
David Wade said:

<snip>
>
The original IBM screens did not have "[" or "]" keys. There are two
places in the EBCDIC code table where these can occur.
0xAD/0xBD
Dem's der bunnies! I'd know 'em anywhere!

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7189
by: TI | last post by:
Where would you start if you wanted to program perhaps a java application to enable a bluetooth mobile phone to work as walkie-talkie? ( schematics, compilers... ) thanks
0
1480
by: Fred | last post by:
I FINALLY got JBuilder 9 working with the J2ME Wireless Toolkit 2.1 under Linux. However, the only emulators that come with this kit are for phones. I'd like to develop apps for Palm OS using...
0
1078
by: Aisha | last post by:
Hi all, this is my first message here.. I use visual studio .NET 2002 with MMIT , and i developed some webpages for mobile devices. i tested them on my cell phone, and they are working fine....
1
6395
by: Chumley Walrus | last post by:
I want to use an emulator to test some mobilewebform stuff (via visual studio.net IDE) , but I can't find anything for the Blackberry 6210, or compatible . I would also need some resources on how...
8
2782
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
1
1558
by: nitinpatel1117 | last post by:
i have a website, which as flash elements on the screen. I've tested it on all the major broswers, IE 6 & 7, firefox v1 & 2, opera, safari. Works perfect on all these broswers, However, i...
1
1853
by: saurabhamiable | last post by:
Can anyone please tell me that how emulators are used in C?
13
5330
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
2
1408
by: lgodiva | last post by:
Has anyone had luck using vmware with jsunit to run tests in other OS/ browser combinations? For example, I'm running vmware on a Mac with OS/X and use it to test my javascript on various browsers...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.