Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Conversion of UTF-8 to EBCDIC using PL/I

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Conversion of UTF-8 to EBCDIC using PL/I
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10309
Location: italy

PostPosted: Sat Feb 20, 2010 11:47 pm    Post subject: Reply to: Conversion of UTF-8 to EBCDIC using PL/I
Reply with quote

did You try searching the net with utf ebcdic conversion

You would have gotten for example
http://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: 1047
Location: Oostende, Belgium

PostPosted: Sat Feb 20, 2010 11:49 pm    Post subject: Re: Conversion of UTF-8 to EBCDIC using PL/I
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10309
Location: italy

PostPosted: Tue Feb 23, 2010 2:45 pm    Post subject: Reply to: Conversion of UTF-8 to EBCDIC using PL/I
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
http://www.ietf.org/rfc/rfc3629.txt for the utf8 definition itself

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

and here is the IBM manual on unicode
http://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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
No new posts Converting EBCDIC to Unicode (TimeStamp) muralikrishnan_new COBOL Programming 2 Mon Jul 25, 2016 10:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us