I *think* I understand the problem. I am going to have to revisit the
documentation and then the code.

When I *re*-parametize the service with a different CCSID it is not
"taking." I have a "handle" or something that is not getting re-initialized.
I just started the program over with 01047/01252 and I get the results
expected: 6A is going to A6 and B0 is going to AC.

In earlier tests I had been starting with 01047/01208 and then
re-configuring the STC. I am calling CUNLINFO and CUNLCNV with parms that
look right but it is using the original values from the first CUNLINFO call,
not the current call.

The above is not a very clear exposition. It has been a year or more since I
wrote this code. I am going to have to re-visit the documentation for
Unicode Services.

Thanks everyone for your help, especially Kirk.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf
Of Charles Mills
Sent: Wednesday, May 23, 2012 1:47 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Unicode Services translation question

Thanks.

> Could there be something wrong with how your Unicode Services tables 
> are
configured?

Sure, but I try to avoid "blame the compiler" and "blame the operating
system" for as long as possible!

I want to see where Walt was going with the > 7F question.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf
Of Kirk Wolf
Sent: Wednesday, May 23, 2012 1:39 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: Unicode Services translation question

Charles,

I'm not sure what the problem is, but 1252 is a single byte charset, so it
seems wrong that you are getting multi-byte results.

I don't see any difference in how you are calling CUNLCNV.... I tried our
code with your technique string (we default to LMREC) :

> *showtrtab -s 1047 -t 1252 -q LMER *


00:  00 01 02 03   1A 09 1A 7F   1A 8D 8E 0B   0C 0D 0E 0F
10:  10 11 12 13   9D 0A 08 1A   18 19 1A 8F   1C 1D 1E 1F
20:  80 81 1A 1A   1A 1A 17 1B   1A 1A 1A 1A   1A 05 06 07
30:  90 1A 16 1A   1A 1A 1A 04   1A 1A 1A 1A   14 15 9E 1A
40:  20 A0 E2 E4   E0 E1 E3 E5   E7 F1 A2 2E   3C 28 2B 7C
50:  26 E9 EA EB   E8 ED EE EF   EC DF 21 24   2A 29 3B 5E
60:  2D 2F C2 C4   C0 C1 C3 C5   C7 D1 A6 2C   25 5F 3E 3F
70:  F8 C9 CA CB   C8 CD CE CF   CC 60 3A 23   40 27 3D 22
80:  D8 61 62 63   64 65 66 67   68 69 AB BB   F0 FD FE B1
90:  B0 6A 6B 6C   6D 6E 6F 70   71 72 AA BA   E6 B8 C6 A4
A0:  B5 7E 73 74   75 76 77 78   79 7A A1 BF   D0 5B DE AE
B0:  AC A3 A5 B7   A9 A7 B6 BC   BD BE DD A8   AF 5D B4 D7
C0:  7B 41 42 43   44 45 46 47   48 49 AD F4   F6 F2 F3 F5
D0:  7D 4A 4B 4C   4D 4E 4F 50   51 52 B9 FB   FC F9 FA FF
E0:  5C F7 53 54   55 56 57 58   59 5A B2 D4   D6 D2 D3 D5
F0:  30 31 32 33   34 35 36 37   38 39 B3 DB   DC D9 DA 1A

Could there be something wrong with how your Unicode Services tables are
configured?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@bama.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to