From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,93a21fa172fdb7e1,start X-Google-Attributes: gidfdb0e,public X-Google-Thread: 1164f8,f98a44416a9e79f6 X-Google-Attributes: gid1164f8,public From: wilson@dbit.com (John Wilson) Subject: Re: PDP-10 ASCII conversion Date: 1998/09/03 Message-ID: <35ef5bec.0@news.wizvax.net>#1/1 X-Deja-AN: 387711713 References: <35EF1532.641DA773@uci.edu> X-Trace: 3 Sep 1998 23:18:04 -0500, dbit.dbit.com Organization: D Bit, Troy, NY Newsgroups: comp.sys.dec,alt.sys.pdp10 In article <35EF1532.641DA773@uci.edu>, Duncan Phillips wrote: >We have some old 9-track tapes from a PDP-10 that we need to retrieve >data from. The tapes have been dumped to cd but I was wondering if >anyone has a filter to convert ASCII files from PDP-10 format to Unix ? You didn't specify what OS the 10 was running. There are utilities on ftp.dbit.com that can read some of them -- TOPS-10 ftp://ftp.dbit.com/pub/pdp10/tops10/decus/backup.tar TOPS-20 ftp://ftp.dbit.com/pub/pdp10/tops20/read20/read20.tar ITS ftp://ftp.dbit.com/pub/pdp10/its/itstar/ If you don't care about the file structure of the tape and can manually extract the ASCII text parts, extracting typical PDP-10 ASCII isn't too hard, each group of five tape frames (i.e. bytes) can be converted to five ASCII characters as follows: Input: aaaaaaaa (as written by TM03 tape formatter etc.) bbbbbbbb cccccccc dddddddd ----eeee (high 4 bits of every 5th byte are dropped) Yielding 36-bit word: aaaaaaaabbbbbbbbccccccccddddddddeeee Extracting 7-bit bytes starting at the left-hand side: Output: 0aaaaaaa (pad with 0 MSB to store as an 8-bit byte) 0abbbbbb 0bbccccc 0cccdddd 0ddddeee (N.B. low bit of 36-bit word is dropped) Just write a quicky program to chew through the CD files 5 bytes at a time doing the above bit twiddling, and then edit out the garbage from the output files and you should be done. Note that PDP-10 software typically stores text files with lines terminated by CR LF, As God Intended; if you'll be using the output on a Weenix system you'll need to strip out CRs that immediately precede LFs. John Wilson D Bit