[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: EBCDIC - AXCII translation issues



Clive, please send the program code you are using to connect to this service. In particular are you trying to force conversion in any way?

Try changing your job to CCSID 37. Call the service. Does it work now?

Are you multi-national on your i? Not telling you what to do as YMMV, but why still using 65535? I assume that is coming from your sysval QCCSID. Here is OLD post talking about it. Way, way, way past time to change it (yes lots of people still run with 65535 but changing to "right" value is better). Google QCCSID and you will see other experiences as well.
http://archive.midrange.com/midrange-l/199809/msg00493.html



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Clive Johnson
Sent: Tuesday, May 10, 2011 9:31 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: EBCDIC - AXCII translation issues

Scott, Thanks for the heads up. I was aware that my user Id/password were in the log but wasn't concerned as it only points to a test server. However on reflection I have taken your advice and changed them.

Back to the matter in hand.

DSPJOB option 2 shows me the following.

Language identifier . . . . . . . . . . . . . . . :   ENU
Country or region identifier  . . . . . . . . . . :   GB 
Coded character set identifier  . . . . . . . . . :   65535
Default coded character set identifier  . . . . . :   37   

Before translation the [ (open square bracket) character is X'B1'
Following translation the character is X'A3'

In my original post I said that we were not having any other translation issues. I must confess this was not entirely true.

If I use Client Access data transfer (Receive File From Host) and leave the "translate server data to" option as the default ASCII then the character gets translated to X'9C'

When I change from the default to the ANSI option it gets translated to X'A3'

The answer to Scotts question about whether I need the ] (open square bracket) symbol is yes, or at least I think it is yes. The support guys at the web service sent me a transcript of a session which works and I am simply trying to emulate that by reproducing the same XML & SOAP message. Again I have included the transcript file (though this time I have removed the user Id & password). I am a novice in this area but it seems to be an array index number.


Clive Johnson
RPG Developer

KURT GEIGER LIMITED
75 Bermondsey Street, London, SE1 3XF
t: +44 (0)207 546 1888 dl: +44 
f: +44 (0)207 546 1880 m: +44 
WWW.KURTGEIGER.COM


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: 09 May 2011 18:10
To: HTTPAPI and FTPAPI Projects
Subject: Re: EBCDIC - AXCII translation issues

Hi Clive,

Just a heads up: Your debug trace file contains your userid/password... 
  So if that wasn't a fake userid/password, you might want to change your password on that site, since you've just sent it out to more than 1000 e-mail recipients on this list.

As for the CCSID issue...  it would help greatly if you could provide the default CCSID number on your system (use DSPJOB, option 2, and page down to 'Default coded character set identifier').  Also please tell us the hex value of the [ character in your program (before translation) and in the output file (after translation, when it looks like pounds sterling).

Also... are you certain that you really want [1] in the XML element? 
Usually when I see [1], it's been added by an e-mail client... and doesn't truly belong in the XML.



On 5/9/2011 11:28 AM, Clive Johnson wrote:
>
>     I am trying to debug a failed attempt to contact a web service (log
>     attached).
>
>
>
>     One of the things I have noticed with a quick look over the log is
>     what appears to be an EBCDIC/ASCII translation issue.
>
>
>
>     My RPG program is writing
>
>
>
>     <consignments soapenc:arrayType="ns2:Consignment[1]"
>
>
>
>     but in the log I found
>
>
>
>     <consignments soapenc:arrayType="ns2:Consignment£1]"
>
>
>
>     the open square bracket has been translated as £ (Sterling currency
>     symbol).
>
>
>
>     Our iSeries system value are
>
>
>
>     QCCSID  = 65535
>
>     QCNTRYID = GB
>
>     QCURSYM = £
>
>
>
>     Other translation functions (FTP, iSeries access data transfer etc)
>     are not giving us problems.
>
>
>
>     Any suggestions ?
>
>     Clive Johnson
>     RPG Developer
>
>     KURT GEIGER LIMITED
>     75 Bermondsey Street, London, SE1 3XF
>     t: +44 (0)207 546 1888 dl: +44 0207 546 1892
>     f: +44 (0)207 546 1880 m: +44
>     [1]WWW.KURTGEIGER.COM
>
>
>
>     **********************************************************************
>     *
>     This message has been sent via the Internet. Internet communications
>     are not secure against interception or modification. Kurt Geiger
>     Limited therefore cannot guarantee that this message has not been
>     modified in transit.
>     This message and any files transmitted with it are confidential and
>     intended solely for the use of the addressee. If you have received
>     this
>     message in error please notify the sender and destroy your copies of
>     the message and any attached files.
>     Kurt Geiger Limited
>     Registered in England and Wales
>     Company Number 968046
>     Registered Office:
>     75 Bermondsey Street
>     Borough
>     London
>     SE1 3XF
>     **********************************************************************
>     *
>
> References
>
>     1. http://www.kurtgeiger.com/
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

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

This message has been sent via the Internet. Internet communications
are not secure against interception or modification. Kurt Geiger
Limited therefore cannot guarantee that this message has not been
modified in transit.
This message and any files transmitted with it are confidential and
intended solely for the use of the addressee. If you have received this
message in error please notify the sender and destroy your copies of
the message and any attached files.

Kurt Geiger Limited
Registered in England and Wales
Company Number 968046
Registered Office:
75 Bermondsey Street
Borough
London
SE1 3XF

***********************************************************************
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------