crucial storage issue with ebcdic to ascii converter


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting crucial storage issue with ebcdic to ascii converter
# 1  
Old 10-23-2008
Data crucial storage issue with ebcdic to ascii converter

Hi,

I am using following command to convert from ebcdic to ascii :-

dd if=input_file of=out_file conv=ascii

but, since input_ile itself is 10 GB big, out_file becomes around 2 to 3 times bigger... got space restrictions in the env..

I am stuck .. any help ..??

Finder255
# 2  
Old 10-23-2008
I don't understand - if the conversion is successful and the output is larger than the input, what shall we help if you can't get more available space? I doubt any other tool will let you have a smaller output - else there could be something wrong if one tool brings another output than the other.
So with what do you need help please Smilie
Try getting more space, maybe temporary from your SAN guys or ask a coworker if he has sufficient space somewhere on one of his servers where you can convert your stuff.
# 3  
Old 10-23-2008
Actually I tried the code for smaller files, and I found its getting big.
I have not yet tried it on big one. I dont know how long its gonna take

Moreso, is it possible to overwrite the same file ,I am taking input from . in
dd command..

Last edited by finder255; 10-23-2008 at 07:55 AM..
# 4  
Old 10-23-2008
to be more clear,
I first do
cat file | od -Ad -x
Now, after this I do cuts using dd command
Now, output of
cat file | od -Ad -x
actually becomes twice the size. I dont know if there is any alternative for above.
I am doing this to grep for some pattern from above hex output.
# 5  
Old 10-23-2008
If you have an ebcdic file and you want to read it on unix do not use od.
od is meant to show you something else, not how to read ebcdic.

dd if=filea of=fileb conv=ascii should produce fileb with the same size as filea.
Anything else is wrong for a straight conversion of ebcdic to ascii.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

Hi, We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic file to ascii... (11 Replies)
Discussion started by: swapna_1990
11 Replies

2. UNIX for Advanced & Expert Users

EBCDIC to ASCII conversion

Hi, I have a input file which is EBCIDIC and it has packed decimals. Can anyone help me to convert EBCIDIC file to ASCII(Need to convert even Packed decimal values also to normal format). Thanks swapna (12 Replies)
Discussion started by: swapna_1990
12 Replies

3. UNIX for Advanced & Expert Users

Conversion from EBCDIC to Ascii OR unicode

I have a file in my Unix ( SOLARIS ) with EBCDIC format...I want this file to read in ASCII OR unicode...Is it possible with UNIX to convert this file on ASCII OR UNICODE format from EBCDIC format? I was searching through web and found only conversion table :( Request Rejected Below is... (16 Replies)
Discussion started by: joshilalit2004
16 Replies

4. Programming

Ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (19 Replies)
Discussion started by: tostay2003
19 Replies

5. UNIX for Advanced & Expert Users

Conversion of data - ebcdic to ascii

Hi, I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ? gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (0 Replies)
Discussion started by: tostay2003
0 Replies

6. Shell Programming and Scripting

EBCDIC Format to ASCII

Hi, we have source file with EBCDIC format(Main Frame files) where we receving from source system. I would like to convert the EBCDIC format file to unix systemformat(ex: .csv,txt ) I have wrote script like: dd if=<SRCPATH>yyy.xxx.RB065 of=<SRCPATH>/output.csv ibs=800 cbs=80... (8 Replies)
Discussion started by: koti_rama
8 Replies

7. UNIX for Dummies Questions & Answers

Help! EBCDIC format to ASCII

Hi everyone, I have a 70MB EBCDIC file, with record length 102, block size 32742 and IBM standard label. I commanded dd if=input file of=outputfie ibs=32742 cbs=102 conv=ascii but I still don't get a viewable file under ASCII. Can anyone told me what's the problem? Do I need... (12 Replies)
Discussion started by: hrchl86
12 Replies

8. Solaris

EBCDIC to ASCII Binary conversion issue on Solaris i-series Unix

Hi All, I am facing EBCDIC to ASCII Binary conversion on Solaris i-series Unix system. However this is working fine on Solaris Sparc Unix system. Input file having EBCDIC format does not work on Solaris i-series Unix system. Could you please tell me, what will be the root cause for same? (14 Replies)
Discussion started by: amodkavi
14 Replies

9. UNIX for Dummies Questions & Answers

Conversion from EBCDIC to ASCII

when i try to convert a mainframe EBCDIC file to ASCII ,i dont see correct file this is the source file ... (3 Replies)
Discussion started by: venkatvelpula
3 Replies

10. Shell Programming and Scripting

ascii to ebcdic conversion

Hello, I need a program for ascii to ebsdic conversion. If anybody can help, it'll be greatly appreciated. Thanks. (1 Reply)
Discussion started by: er_ashu
1 Replies
Login or Register to Ask a Question