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

Translate Unicode to Decimal


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Dec 09, 2009 1:14 pm
Reply with quote

Hi
Is it possible to translate UNICODE format data to decimal directly in REXX?
Or it should be like UNICODE to ASCII to Decimal

how to differentiate UNICODE from EBCDIC format?

Will Translate command in REXX help?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 09, 2009 1:30 pm
Reply with quote

if You post an example of the data You want to convert You might get better help

use the BBcode tags, in order to have the data sample properly aligned
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Wed Dec 09, 2009 2:42 pm
Reply with quote

HameedAli wrote:
Is it possible to translate UNICODE format data to decimal directly in REXX?


No

HameedAli wrote:
Or it should be like UNICODE to ASCII to Decimal


No

HameedAli wrote:
how to differentiate UNICODE from EBCDIC format?


You cannot, both are made up of bytes with a numerical value 0..255 and there is absolutely no way for a computer to decide whether the data is Unicode, ASCII, EBCDIC or an output file with binary numbers.

HameedAli wrote:
Will Translate command in REXX help?


No.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Wed Dec 23, 2009 4:41 pm
Reply with quote

Code:
000001 DBRM   µASDFGH  ZXCVBNM  Äj¦ µQ¬  P                                    4  1  ØLL
000002                                                                         
000003 DBRM           8        ê|<<â ä.                                       


How to convert a desired length of a line to a readable format?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 23, 2009 6:38 pm
Reply with quote

if You had posted an hex on cut and paste we would have been able to offer better suggestions
what You posted is just unintelligible garbage

hex on, and show what You are expecting the rexx script to do
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Dec 23, 2009 8:04 pm
Reply with quote

ibmsystemsmag.blogs.com/db2utor/2009/02/viewing-a-unicode-dbrm-in-an-ebcdic-browser.html
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Select a DB2 value in a specific deci... DB2 4
No new posts String has hex character need to conv... COBOL Programming 3
No new posts How to display the leading zeros of a... DB2 7
Search our Forums:

Back to Top