- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Convert ascii to ebcdic in HPUX using dd
Operating System - HP-UX
1825139
Members
5067
Online
109679
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-14-2007 01:36 AM
11-14-2007 01:36 AM
Convert ascii to ebcdic in HPUX using dd
Hi,
I am try to convert ASCII file to MVS EBCDIC format using the dd cmd.
Out put file comes with grebe.
dd if=convert.txt of=CONVERT conv=ebcdic
Text file is contain of below info
000234999
345543678
123345678
out put comes like this
--
bepdr:/ashan # cat CONVERT
òóô÷öõô÷ò%òóô÷öõô÷õ%òóô÷öõôøö%òóô÷öõöòñ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%bepdr:/ashan #
Please any one know how to fix this problem
Thx!
Ashan
I am try to convert ASCII file to MVS EBCDIC format using the dd cmd.
Out put file comes with grebe.
dd if=convert.txt of=CONVERT conv=ebcdic
Text file is contain of below info
000234999
345543678
123345678
out put comes like this
--
bepdr:/ashan # cat CONVERT
òóô÷öõô÷ò%òóô÷öõô÷õ%òóô÷öõôøö%òóô÷öõöòñ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%bepdr:/ashan #
Please any one know how to fix this problem
Thx!
Ashan
legend the heart and lend the hand
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 01:56 AM
11-14-2007 01:56 AM
Re: Convert ascii to ebcdic in HPUX using dd
What are you expecting the output to be ?
The dd is doing what you told it to.
The dd is doing what you told it to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2007 03:19 AM
11-14-2007 03:19 AM
Re: Convert ascii to ebcdic in HPUX using dd
A couple of things are at play in your case. 1) You did not specify a cbs (conversion buffer size) so the default size was used. This results in padding being added to the output. 2) cat is a lousy tool to use when non-ASCII data is being displayed.
Use od (or xd) to examine your output file.
e.g.
xd -Ad -v -txC myfile
which will display the hexadecimal equivalent for each byte.
Man dd and xd for details.
Use od (or xd) to examine your output file.
e.g.
xd -Ad -v -txC myfile
which will display the hexadecimal equivalent for each byte.
Man dd and xd for details.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP