- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Convert file to EBCDIC
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 09:20 AM
02-28-2008 09:20 AM
Convert file to EBCDIC
I have one requirement to convert a file(majorly ASCII and some mixed Binary data) to EBCDIC. I used dd command dd if=asciifile of=ebcdicfile conv=ebcdic. By doing this, all the ascii data converted to ebcdic. But I need to preserve my Binary data while doing this. I just want to convert ASCII data to EBCDIC by leaving the binary as it is. Can anyone help me to achieve this?
Thanks,
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 09:38 AM
02-28-2008 09:38 AM
Re: Convert file to EBCDIC
you have to dissect you file into ascii and binary parts by some logic and process them individually and then recombine them.
But with no idea about the nature of your files no better suggestions can be made.
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 09:40 AM
02-28-2008 09:40 AM
Re: Convert file to EBCDIC
I would question have mixed ASCII and binary data in the same file anyway.
I think it would be better to split the file into 2 parts. 1 part ASCII and the other part the binary data. Once split, you can convert the ASCII to EBCDIC and then concatenate the files back together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 10:06 AM
02-28-2008 10:06 AM
Re: Convert file to EBCDIC
Currently our system is Mainframes which is producing the file that would be normally EBCDIC format and that file will be send to external system i.e. also Mainframe through FTP binary mode. So no issues in interpreting the file. Now the sending system is going to change to UNIX so that file format will be ASCII instead of EBCDIC. If we send the file through binary mode, everything will be corrupted.If it through ASCII, Only ascii data will be preserved and not the binary data. Since it is the system migration i.e. from mainframe to UNIX, we haven't bothered abt this thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 10:30 AM
02-28-2008 10:30 AM
Re: Convert file to EBCDIC
I'm not sure what you're trying to say with the above.
You really need to:
a) Split the file into separate binary / text info.
b) Be aware that the "binary" information may not be usable due to differences in processor architecture (endian issues, word size and I suppose others).
The interfacing mechanism between the two boxes needs to be better thought out, it appears
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 08:12 PM
02-28-2008 08:12 PM
Re: Convert file to EBCDIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2008 11:50 PM
02-28-2008 11:50 PM
Re: Convert file to EBCDIC
Bill Hassell, sysadmin