473,840 Members | 1,515 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 2377
"John" <so*****@micros oft.comwrote in message
news:Dv******** ***********@tor nado.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.listse rv.ibm-main
Jul 19 '06 #2
"John" <so*****@micros oft.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.ib m-main.)

--
Keith Thompson (The_Other_Keit h) 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*****@micros oft.comwrote in message
news:Dv******** ***********@tor nado.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
7249
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
1500
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 JBuilder. Is this possible? If so, is there another J2ME toolkit I need to download? -Thanks
0
1089
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. however i want to use emulators. i installed openwave simulator but when i try to access the web page (which has the extension .aspx) it says: unsupported content type. i also downloaded visual embedded tools 3.0 to test on Pocket Pc, but i couldn't....
1
6409
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 to use emulators to test coding. Thanks in advance Chumley
8
2820
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);" TextBox2.Attributes.Add("onKeyPress", jscode) You will notice that jscode contains the JavaScript Logical And operator (&&). However, ASP.NET renders this as &amp;&amp; in the code that is
1
1572
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 tested on windows XP, and now just found out that a part of the flash element does not work on firefox v2 when the user has windows vista OS. All other broswer on vista are fine, just Firefox seems to be affected. Same vesion of firefox on Vista and...
1
1881
by: saurabhamiable | last post by:
Can anyone please tell me that how emulators are used in C?
13
5370
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, telling me that it should be: http://localhost:2063/Client/ViewReport.aspx?Ref=58&amp;Type=SUMMARY see: <http://www.htmlhelp.com/tools/validator/problems.html#amp>
2
1437
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 and Windows versions. Is there anything special I need to do in the test case configuration? I am a newbie at this, so specific info/examples would be greatly appreciated - thanks.
0
9860
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
10601
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10658
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10300
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7838
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Duprť who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7023
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3138
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.