Conversion from EBCDIC to Ascii OR unicode


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Conversion from EBCDIC to Ascii OR unicode
# 15  
Old 02-12-2015
Experts, need your help. I have a file which is in ebcdic binary (cp 1047). I tried dd if=so_tran05.dat_bkp conv=ascii. This command converts everything except packed decimal amount fields and date/timestamp fields. What is the workaround?

output looks like
Code:
21211       001332        80473WA0680002                                    \201\250*^L53073   20131004        20140101  201401019010200C35406^L

expected output
Code:
21211          01332        80473WA0680002                                         214.95       0.0053073        20131004 20140101        201401019010200C35406NN2015-02-12 07:54:09


Last edited by Don Cragun; 02-12-2015 at 08:25 PM.. Reason: Add CODE tags.
# 16  
Old 02-12-2015
Quote:
Originally Posted by sagrawa
Experts, need your help. I have a file which is in ebcdic binary (cp 1047). I tried dd if=so_tran05.dat_bkp conv=ascii. This command converts everything except packed decimal amount fields and date/timestamp fields. What is the workaround?

output looks like
Code:
21211       001332        80473WA0680002                                    \201\250*^L53073   20131004        20140101  201401019010200C35406^L

expected output
Code:
21211          01332        80473WA0680002                                         214.95       0.0053073        20131004 20140101        201401019010200C35406NN2015-02-12 07:54:09

When starting a new question, please start your own thread instead of starting a second discussion in an existing thread!

However, in this case, you are just rephrasing the same issue that started this thread. Your question has already been answered by the comments given to joshilalit2004 who started this thread.
# 17  
Old 02-13-2015
Please attach the file.

If you cannot attach it, please explain why. Use a screenshot if necessary.
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. Shell Programming and Scripting

Need help for EBCDIC TO ASCII conversion through UNIX

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

4. UNIX for Dummies Questions & Answers

EBCDIC TO ASCII Conversion through UNIX Command

Hi All , I have a mainframe file which contains the data in EBCDIC unreadable format.I have downloaded this raw unreadable file from mainframe system to windows in text format then I pushed to Unix system.Now I want to convert this file to ASCII readable format file in unix.Can anyone advise me... (2 Replies)
Discussion started by: STCET22
2 Replies

5. 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

6. 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

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