Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IBM Standard Tape Labels

Status
Not open for further replies.

hullwcs

Programmer
Aug 2, 1999
2
GB
We need to produce IBM 1/2 Inch Reel tapes containing IBM Standard Tape Labels.<br>
<br>
We are a Unisys Unix System V Release 4.2 site, are there any scripts or software packages available to produce the following :-<br>
<br>
Ascii file to 1/2 inch tape reel with record size of 300 and block size 32700 converting to ebcdic with IBM Standard Tape Labels.
 
Take a look at the man page for dd. (Assuming your Unix box can read/write the tape reel.) I don't think the record size in the ascii file will matter, dd is just going to read the file and send it back out in the required format. The following _may_ work for you. If not, I hope it provides a pointer in the right direction:<br>
<br>
dd if=/my/ascii/file.txt of=/dev/my_tape_reel obs=32700 conv=ebcdic<br>
<br>
Each option in turn:<br>
<br>
if Input File<br>
of Output File<br>
obs Output Block Size<br>
conv Conversion<br>
<br>
Note, you may need to change &quot;conv&quot; from ebcdic to ibm - this gives a slightly different EBCDIC conversion.<br>
<br>
As far as the Tape Labels go, I'm assuming that this is a standard header block on the tape? If so, if you know the format of the block then you could create a file containing the header block. Then use cat to create a new file containing your header block and ascii data ('cat hdrblock.file ascii.txt &gt;tapefile.out') and send this new file to the tape using the dd command above.<br>
<br>
Hope this helps.<br>

 
I remember using a utility called ansitape a few years back (over 15 hehe) that would do just that. I had to compile it on my hpux systems and would load tapes cut on an IBM mainframe to my systems. Check in the gnu archives, it may be there.<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top