- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to translate data fro mainframe to UNIX
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
Discussions
Discussions
Discussions
Forums
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
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-27-2001 02:50 AM
тАО02-27-2001 02:50 AM
How to translate data fro mainframe to UNIX
How can i do to translate data from mainframe tape to UNIX tape ( maybe with dd or mt ???? )
Thanks
Federico
- Tags:
- dd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 03:04 AM
тАО02-27-2001 03:04 AM
Re: How to translate data fro mainframe to UNIX
You may have a little problem, because the basic codes of the data are different. Unix is ASCII, mainframe is not.
Second : the structure of the tapes will be different
If you do not know the block structure on the tape, forget it anyway.You may have a chance, if you are using the same tape software on mainframe as well as on UNIX.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 03:06 AM
тАО02-27-2001 03:06 AM
Re: How to translate data fro mainframe to UNIX
Yes with dd, see the optins of conv for EBCDIC=>ASCII and conv=unblock...
Good luck
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 03:12 AM
тАО02-27-2001 03:12 AM
Re: How to translate data fro mainframe to UNIX
federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 03:36 AM
тАО02-27-2001 03:36 AM
Re: How to translate data fro mainframe to UNIX
Lets say you want to cut a flat file in records of fixed lenght:
dd if=inputfile of=outfile cbs=
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 07:32 AM
тАО02-27-2001 07:32 AM
Re: How to translate data fro mainframe to UNIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 07:34 AM
тАО02-27-2001 07:34 AM
Re: How to translate data fro mainframe to UNIX
I agree Victor. Read man dd carefully.
Ask to mainframe people what block and record length was used to record tape.
At the end you will use a command like this:
dd if=ifile of=ofile ibs=BLOCK_LENGTH cbs=RECORD_LENGTH convert=ascii
wc, awk, ebcdic to ascii chart will be very usefull for this task.
Records from mainframe use to be fixed length records, and it is easier translate into fixed records too.
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 09:18 AM
тАО02-27-2001 09:18 AM
Re: How to translate data fro mainframe to UNIX
TapeHead
Tape Content
Tape trailer
So if you are reading the tape directly on a Unix box, be sure to skip past the tape header by using the command
mt -t /dev/tape fsf 1
Then use /dev/tapenr (no rewind) on your dd command. (use the approriate tape device name for your system for /dev/tape).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2001 06:44 PM
тАО02-27-2001 06:44 PM
Re: How to translate data fro mainframe to UNIX
There is nothing inherent in Unix to read mainframe tapes even though there are ANSI standards for labeled tapes. You can decode EBCDIC tapes with dd but this assumes that the information is character and not binary. For binary data, you'll have to read this data with special programs anyway so it may be easier to feed the tapes directly into a custom program.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2001 12:26 AM
тАО02-28-2001 12:26 AM
Re: How to translate data fro mainframe to UNIX
Sorry for the dumb answer.
Thanks to the Magicians in this forum !
I now got some info, that i needed.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2001 08:01 AM
тАО02-28-2001 08:01 AM
Re: How to translate data fro mainframe to UNIX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2001 08:36 AM
тАО02-28-2001 08:36 AM
Re: How to translate data fro mainframe to UNIX
You have basically two issues: data transfer and data conversion. Either one can be a show stopper. As mentioned by other posters, "dd" is your best bet for the tape transfer. If you can't accomplish this, you will have to look at other methods, such as networking. Don't forget about good ol' RS-232 and kermit if you don't have 10(0)Base2/10/T (and yes, it will take longer than almost *any* other method).
Here are some HP-UX tools that may help you with the data conversion:
cat - concatenates file(s) to stdout (standard output)
wc - counts characters, words, and/or lines of text in a file
head - outputs beginning lines of a file
tail - outputs ending lines of a file
split - splits one file to several files
strings - finds printable strings in object or binary file
grep - search a file for all lines that match a pattern
cut - extract selected fields
tr - translate or delete characters
paste - merge same lines of several files
newform - change or reformat a text file csplit - context split
adjust - simple text formatter
comm - select or reject lines common to two files
expand - converts tabs to spaces
dd - convert, reblock, or translate a file
pr - print formatter
sort - sorts a file on selected fields
od/xd - examine bytes of a file (-c displays ASCII characters)
sed - stream editor
awk - pattern directed scanning/processing language
There are probably some tools on your mainframe that can help get your data into a format more easily convertable by the HP box when you get it there. If you use the above tools, you will likely want your input and output files to be flat files.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2002 02:39 PM
тАО01-27-2002 02:39 PM
Re: How to translate data fro mainframe to UNIX
Thanks, and sorry I can't be of help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2002 05:29 PM
тАО01-27-2002 05:29 PM
Re: How to translate data fro mainframe to UNIX
Mainframe data is in EBCDIC and UNIX data is in ASCII format. So if you want to copy from Mainframe tape to UNIX tape, you can use this command:
dd if=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2002 12:50 AM
тАО01-29-2002 12:50 AM
Re: How to translate data fro mainframe to UNIX
- Binary or character?
- If characters: EBCDIC or ASCII?
- Does the tape have a header? If so, details about *that*.
- Logical block size? Fixed or variable block size?
- Blocking factor?
- Physical block size? Fixed or variable block size?
- Etc.
You can find out most of these things with dd(1) and mt(1), but you will need expertise in the subject matter and experience with using these tools. If you do not have that, it will be very difficult and it will be impossible or at least very, very, difficult for 'us' to give advice via this non-interactive medium.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2007 11:38 PM
тАО01-24-2007 11:38 PM
Re: How to translate data fro mainframe to UNIX
I Know that is contains several records of specific length. I tried several options like DD,iconv etc. But nothing worked. I am attaching the file for ur reference. Can anyone help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2007 02:57 PM
тАО01-25-2007 02:57 PM
Re: How to translate data fro mainframe to UNIX
> Hi, I have a similar problem. I have a data file which i recvd from mainframe in UNIX. I have absolutely no idea how to read it in UNIX. I Know that is contains several records of specific length. I tried several options like DD,iconv etc. But nothing worked. I am attaching the file for ur reference. Can anyone help me?
There is no possible way to read this without a *LOT* more details. Mainframes can write tapes in dozens of different ways and there is no reason to expect any compatibility at all. This is a major task that will require the cooperation of mainframe admins. The data file you have may be a bunch of binary numbers which are useless since these numbers are unique to that mainframe and the program that created the records.
The file may contain all text rather than binary numbers but it's likely in a different character set such as EBCDIC. But even if you converted the text to ASCII, you will likely have long strings of numbers, virtually useless without a customized program to interpret the fields.
So send the tape back and ask the mainframe admins to setup a conference on just what the data format should be. All mainframes have data formatting features such as JCL that can define the tape format you need. I have attached a script which can read IBM labeled tapes which have one or more files where each file has a fixed record length. AS you'll see from the script, there is nothing simple about reading mainframe tapes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2007 03:01 PM
тАО01-25-2007 03:01 PM
Re: How to translate data fro mainframe to UNIX
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2007 07:22 PM
тАО01-26-2007 07:22 PM
Re: How to translate data fro mainframe to UNIX
Mainframe people did provide me with a file containing the data structures and their formats.But still i am not sure about how to use it on the data file so that i am able to convert it into a readable format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2007 09:07 PM
тАО01-26-2007 09:07 PM
Re: How to translate data fro mainframe to UNIX
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2007 11:24 PM
тАО01-26-2007 11:24 PM
Re: How to translate data fro mainframe to UNIX
$ dd if=285163.null conv=ascii | xd -tc | more