IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Conversion of UTF-8 to EBCDIC using PL/I


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JaideepMukherjee

New User


Joined: 19 Feb 2010
Posts: 3
Location: India

PostPosted: Sat Feb 20, 2010 10:56 pm
Reply with quote

Hi,

In one of the requirement I am working into(using PL/I) , I need to Read a File having Data in UTF-8 format.

When I try to read the file into a copybook structure and display respective variables, I find the displayed data is not readable and hence find it difficult to validate my output.

Could someone help with a sample PL/I Code or a hint that converts UTF-8 data to EBCDIC ?

Thanks much in advance.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Feb 20, 2010 11:47 pm
Reply with quote

did You try searching the net with utf ebcdic conversion

You would have gotten for example
unicode.org/reports/tr16/
would be a good starting point

it is odd that Your organization did not yet provide standards to accomplish such a task

are You sure thatYou are using utf/8 ( I wonder )
did You search the pl/i docs with WIDECHAR ??
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Sat Feb 20, 2010 11:49 pm
Reply with quote

JaideepMukherjee wrote:
In one of the requirement I am working into(using PL/I) , I need to Read a File having Data in UTF-8 format.

When I try to read the file into a copybook structure and display respective variables, I find the displayed data is not readable and hence find it difficult to validate my output.

Could someone help with a sample PL/I Code or a hint that converts UTF-8 data to EBCDIC ?


Get Enterprise PL/I V3R9M0, it contains a load of new builtins to deal with non-EBCDIC data.
Back to top
View user's profile Send private message
JaideepMukherjee

New User


Joined: 19 Feb 2010
Posts: 3
Location: India

PostPosted: Sun Feb 21, 2010 10:07 am
Reply with quote

Thanks enrico-sorichetti , prino for your quick replies...
icon_smile.gif
I will recheck the PL/I materials with your suggestions....
Back to top
View user's profile Send private message
JaideepMukherjee

New User


Joined: 19 Feb 2010
Posts: 3
Location: India

PostPosted: Tue Feb 23, 2010 1:51 pm
Reply with quote

Really sorry to say, I couldn't get any information ....

WIDECHAR couldn't help me much...

my requirement is, I need to read some UTF-8 data from file and convert it into Human Readable Format, EBCDIC ...

and this conversion needs to be done through PL/I code....

Need your suggestions....
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Feb 23, 2010 2:45 pm
Reply with quote

post the hex dump of some records ...
if You cannot do that, we cannot help You.

anyway the best approach for such a task would to work with Your support!
it should not be a one man effort

the decision to support UTF encodings should have been taken at a higher level than application development, it involves quite a bit of effort and standardization
it is usually an IT infrastructure support task, in order also to provide a common set of standards to carry on thongs like the one You are asking for!

talk to Your manager and have him speak to the manager who accepted the utf8

here are a few links to utf docs
www.ietf.org/rfc/rfc3629.txt for the utf8 definition itself

the unicode source of wisdom
unicode.org
faqs on UTF issues ( a link in the above page )
unicode.org/faq

and here is the IBM manual on unicode
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2un71
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts SMF Record Date conversion failing CLIST & REXX 1
No new posts EBCDIC and ASCII CICS 7
Search our Forums:

Back to Top