The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 08:31 PM
comparing two decimal values in KSH nandinisagar Shell Programming and Scripting 4 11-15-2005 06:36 PM
unix script for converting a decimal to binary softy Shell Programming and Scripting 3 10-19-2005 09:33 AM
Help: How do I ADD non-integer (decimal) values? limshady411 Shell Programming and Scripting 2 09-07-2005 04:41 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-28-2008
gaur.deepti gaur.deepti is offline
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
  #2 (permalink)  
Old 03-28-2008
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
See: man dd
  #3 (permalink)  
Old 03-31-2008
gaur.deepti gaur.deepti is offline
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
  #4 (permalink)  
Old 04-02-2008
unilover unilover is offline
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?
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0