A Tape Index

See all articles from Sinc-Link v10 n3
Author(s): Les Cottrell
Publication: Sinc-Link
Pub Details: Sinc-Link v10 n3 (Volume 10, Issue 3)
Date: May/June 1992
Pages: 31

In the last issue of the newsletter it was suggested that we should write with our problems and experiences. Here is one of mine.

I started looking for a program recently that wouldn’t run properly from disk. I had started to index my tapes a long time ago by using the CATALOG function in MSCRIPT. That required sorting thru each tape listing. I wished that I had a program like the one I use for disks – Bob Mitchell‘s DISK INDEX program. I decided that I could accomplish what I wanted by taking the MSCRIPT file and running Bob’s “mssort” program. First I added any tapes I hadn’t previously run into the MSCRIPT file. They come in looking like:

********************************
TYP NAME          START LENTH PROGL
BAS Beta Basic       20  1568  1529
BIN BB            46680 18688
BAS BETABdemo         1  1521  1489
BAS BBdemo         9800 22345 22313

After the names are loaded into MSCRIPT the header and other unwanted info is removed and it looks like the list under the first one. My list was 640 programs long after removing some of machine code files.

58 Beta Basic
58 BB
58 BETABdemo
58 BBdemo

Since mssort can only handle 200 lines per pass I divided my file into four sections and sorted on column four. Sample result at the left.

26 Belltower
36 Belltower
58 Beta Basic

After the first four passes I used MSCRIPT block file moves to put all A thru M files from each group together, N thru a, b thru p and then q and on. Each of these files was mssort-ed again until my whole file was in alphabetical order. Eight separate runs were used. The mssort part was the quickest part of the operation. (Thanks Bob)

Belltower    26,36
Beta Basic   58

The completed file was scanned and a column was selected so no file name would t extend into the tape numbers. The final file currently looks like the last example. I may add some remarks on the right side of the page later.

The final file is 367 lines long after eliminating duplicates. And I can easily locate any program I have on tape. The bad news is that the program I was searching for has the same problem as the disk version.