Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Code page dilema

52 views
Skip to first unread message

Steve Comstock

unread,
Apr 4, 2008, 12:32:14 PM4/4/08
to
I'm having some trouble finding the right mix of code
pages in the right place to accomplish some work.

Environment:
z/OS 1.9, ISPF specifies terminal type 3278, enable euro
SDSF just changed codepage support for 1140

On the workstation, Tom Brennan's Vista tn3270
Set code page to International (euro) (which is 1140)
or
Sometimes set code page to US C-Programming (1047)

What I find is:
SDSF 1140 allows a printed Euro to display - one of my objectives

but 1140 does not map [ and ] correctly to AD / BD - my other obj.

So to work with brackets, I have to switch the emulator to
use US C-Programming; to view the Euro, I have to switch
the emulator to International (euro)

I can't seem to find a combination of code page settings
that will let me do both at the same time.

Tom has been terrific, but I'm still not there. Any suggestions?


Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

  z/OS Application development made easier
    * Our classes include
       + How things work
       + Programming examples with realistic applications
       + Starter / skeleton code
       + Complete working programs
       + Useful utilities and subroutines
       + Tips and techniques

==> call or email to receive a free sample student handout <==


**************

Planning your summer road trip? Check out AOL Travel Guides.

(http://travel.aol.com/travel-guide/united-states?ncid=aoltrv00030000000016)

James Campbell

unread,
Apr 7, 2008, 6:08:51 AM4/7/08
to
Is this so you can write C language programs? If so, why not start your C programs with
??=pragma filetag("IBM-1140")
and use x'BA' and x'BB' for (square) brackets.

At some time in the future, you could alter the pragma and do a global change to change the
brackets. Or not.

James Campbell

> Date: Fri, 4 Apr 2008 12:21:47 EDT
> From: Steve Comstock <SCom...@AOL.COM>
> Subject: Code page dilema


>
> I'm having some trouble finding the right mix of code
> pages in the right place to accomplish some work.
>
> Environment:
> z/OS 1.9, ISPF specifies terminal type 3278, enable euro

> SDSF just changed codepage support for 1140=20

Steve Comstock

unread,
Apr 7, 2008, 9:39:57 AM4/7/08
to
In a message dated 4/7/2008 4:08:32 AM Mountain Daylight Time,
jacam...@ACSLINK.NET.AU writes:

> Is this so you can write C language programs? If so, why not start your C
> programs with
> ??=pragma filetag("IBM-1140")
> and use x'BA' and x'BB' for (square) brackets.
>
> At some time in the future, you could alter the pragma and do a global
> change to change the
> brackets. Or not.
>
> James Campbell
>

Partly. But other languages (e.g. Java) use brackets.
And actually the need for the Euro came from a COBOL
program I have in one of my COBOL classes.

Anyway, the correct codepoints for brackets, that are
recongized by the C compiler are AD and BD.

I was able to solve my problem and I posted the solution
on IBM-Main. I copy it here...

For my particular need, getting correct EBCDIC values
for brackets and viewing the Euro, I was able to satisfy
this need with some help from Tom Brennan and some
suggestions from this list. Here are the pieces:

1. For SDSF parms, set CODPAG(CP01140) on TRTAB
   (then refresh the SDSF parms with this command:
      F SDSF,REFRESH,M(01)
     '01' refers to the last two digits of
     ISFPRMxx, which is the member of PARMLIB
     with SDSF paramters)

   Note: For other spool management products,
         perhaps the ISVs can chime in with
         how to do this for their product)

2. For ISPF, under Settings I ensured Enable Euro
   was checked, and for terminal type I used
   3278L1

3. For Vista tn3270, it turns out I was down level,
   so Tom sent me a link to the current version,
   which I installed.

   But this didn't solve the problem entirely.
   Eventually Tom suggested I add a few lines
   to a configuration file, and voila! it works!

   I'll not go into the details of the above
   mod because I've passed all the info back to
   Tom and he may automatically update Vista so
   that you don't need to make the mod. If you're
   interested, and if you already use Vista,
   contact Tom. He's exceptionally responsive.

John R. Macdonald

unread,
Apr 12, 2008, 9:08:12 PM4/12/08
to
On 7 Apr 2008 06:39:57 -0700, SCom...@AOL.COM (Steve Comstock)
wrote:


Hi
If you're writing C code why not use the ANSI trigraph sequences for
the brackets, braces etc.? (sorry don't know about the Euro sign).
That way the code remains portable across platforms and the compiler
does the necessary conversions from the trigraphs to the single
character.
HTH
John

0 new messages