HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using dd to convert from UNIX to mainframe
Operating System - HP-UX
1829104
Members
5088
Online
109986
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
Go to solution
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
06-27-2001 07:54 AM
06-27-2001 07:54 AM
I am trying to use dd to cut a tape for the IRS to be used on an IBM system . I am using the following on an HPUX 10.20 system:
dd if=xxx of=/dev/rmt/c9t0d0D6250 bs=6900 conv=block cbs=276 conv=ebcdic
They are telling me that the block size is 6900 and record length is 275. I don't understand. They said to use 6900 with 276 or 6875 with 275. I thought I was using 6900 with 276. Any thoughts or ideas????
dd if=xxx of=/dev/rmt/c9t0d0D6250 bs=6900 conv=block cbs=276 conv=ebcdic
They are telling me that the block size is 6900 and record length is 275. I don't understand. They said to use 6900 with 276 or 6875 with 275. I thought I was using 6900 with 276. Any thoughts or ideas????
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 08:06 AM
06-27-2001 08:06 AM
Solution
Hi George,
It's been years since I've had to do one of these. I seem to remember that they want 25 records/block (25x276=6900).
I would do this in two steps or you can build a pipeline.
dd if=xxx of=/tmp/f1 bs=276 cbs=276 conv=ebcdic
then
dd if=/tmp/f1 ibs=276 obs=6900 of=/dev/rmt/c9t0d0D6250.
Regards, Clay
It's been years since I've had to do one of these. I seem to remember that they want 25 records/block (25x276=6900).
I would do this in two steps or you can build a pipeline.
dd if=xxx of=/tmp/f1 bs=276 cbs=276 conv=ebcdic
then
dd if=/tmp/f1 ibs=276 obs=6900 of=/dev/rmt/c9t0d0D6250.
Regards, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2001 12:04 PM
06-27-2001 12:04 PM
Re: using dd to convert from UNIX to mainframe
The block size is a function of the bs argument to dd.
But the record length has nothing to do with dd. It has to do with the length of records in your input file.
Your input file probably has lines that look like this
field-1|f2|f3|...\n
whereas they're looking for something with fixed length fields and hence records.
But the record length has nothing to do with dd. It has to do with the length of records in your input file.
Your input file probably has lines that look like this
field-1|f2|f3|...\n
whereas they're looking for something with fixed length fields and hence records.
Brainbench MVP for Unix Administration and Internet Security, SANS Review Editor, and Center for Internet Security HP-UX Benchmark project leader
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP