The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Evaluating Decimal values larrys721 Shell Programming and Scripting 4 06-02-2008 05:31 PM
comparing two decimal values in KSH nandinisagar Shell Programming and Scripting 4 11-15-2005 03:36 PM
unix script for converting a decimal to binary softy Shell Programming and Scripting 3 10-19-2005 06:33 AM
Help: How do I ADD non-integer (decimal) values? limshady411 Shell Programming and Scripting 2 09-07-2005 01:41 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-28-2008
Registered User
 

Join Date: Mar 2008
Posts: 5
Converting Binary decimal coded values to Ascii Values

Hi All,

Is there any command which can convert binary decimal coded values to ascii values...

i have bcd values like below

îîîîîîîîîîîî0î–– –v –

Pls suggest a way to convert this.

Thanks,
Deepti.Gaur
Reply With Quote
Forum Sponsor
  #2  
Old 03-28-2008
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
See: man dd
Reply With Quote
  #3  
Old 03-31-2008
Registered User
 

Join Date: Mar 2008
Posts: 5
Hi ,

I have tried the below things but i am getting the output as all numbers


dd if=inputfile of=test.dat ibs=512 cbs=0 conv=ascii
dd conv=ascii | od -c inputfile > test.dat

i am getting the below values

0000140 4149 4c4c 474d 412e 3946 4939 4942 302e
0000160 3630 3133 3930 0333 4500 5888 8e82 eeee
0000200 eeee eeee eeee 0299 0075 0063 0000 3208
0000220 8888 ee73 eeee 0eee 0e0e 300e 0e03 e863

the above values contains varchar and date columns which i am not able to see

pls suggest any other way

Thanks,
Deepti.Gaur
Reply With Quote
  #4  
Old 04-02-2008
Registered User
 

Join Date: Mar 2008
Location: Toronto, Canada
Posts: 66
if your inputfile contains ONLY EBCDIC characters, dd in=inputfile out=outputfile conv=ascii will do the job.

If you're not getting what you expect, your data is either totally or partially NOT EBCDIC!!!

Can you verify it?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0