home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / articles / archives / limanews.exe / SIMPLEDB.TXT < prev    next >
Text File  |  2006-10-19  |  4KB  |  87 lines

  1. ORIGINALLY PUBLISHED NOVEMBER 1993 IN LIMA NEWSLETTER
  2.  
  3.       THE SIMPLEST EASIEST KIND OF DATABASE: 
  4.      Using the computer to search the Lima library 
  5.      disk listings for specific software  
  6.      by Charles Good 
  7.      Lima Ohio User Group 
  8.  
  9.      Several months ago at one of the Lima group's regular meetings, a member
  10. asked me where he could find Multiplan templates in the group's software
  11. library.  Since I didn't know exactly, it was necessary to search printed
  12. directories and the commented listings of all of the 800+ disks in the library
  13. to find them all .  I decided there had to be an easier way.  After all,
  14. commented listings of all disks in our library, and the disk directories, are
  15. all in DV80 text files.  Surely the computer could search these text files and
  16. find all references to the word Multiplan.  Why not use Funnelweb's Disk Review
  17. in I(nspect) a library listing file and search that file or an entire disk of
  18. library listing files for the string "Multiplan"? Unfortunately it wasn't as
  19. easy as that. 
  20.  
  21.       Over the years, as I have been adding disks to the group's library I have
  22. been adding DSKU comments to the disks in both upper and lower case.  A disk
  23. with Multiplan stuff may have a comment such as "All these files are Multiplan
  24. templates."  Such commented listings look good and are easy to read when
  25. printed on paper, but it is hard for the computer to find all Multiplan
  26. references in such text.  That is because sometimes I spelled it "MULTIPLAN",
  27. and sometimes "Multiplan".  The 99/4A disk operating system doesn't know that
  28. these are both the same.  Another example would be Ms Pacman vs MS PACMAN.  An
  29. IBM system using MS-DOS would recognize both of these as the same.  MS-DOS is
  30. not case sensitive.  99/4A DOS is case sensitive.  What I should have done all
  31. along is USE ONLY UPPER CASE in our library listing text files.  I will do this
  32. in the future. 
  33.  
  34.     I wrote the XB program below to convert existing Lima library listing files
  35. into all upper case.  Put as many of these all upper case files as you can on a
  36. disk or ramdisk. Using Funnelweb's Disk Review bring up a disk directory, press
  37. I, select DISK SEARCH, choose ASCII, and then type an upper case key word or
  38. text string you want to look for.  The computer will search THE ENTIRE DISK for
  39. this string and display each sector where the string is found.  Use CTRL/N or
  40. CTRL/B to page sector display foreward or backwards until you see the name or
  41. number of the disk that contains your software. 
  42.  
  43.      Members of the Lima UG can request these ALL UPPER CASE DV80 library
  44. listings by sending the equivalent 12 DSSD disks and a paid return mailer to
  45. the group's mailing address. 
  46.  
  47.      This sort of text file data base has many uses.  For example, if you have
  48. a large collection of music CDs tapes and phonograph records you may have
  49. trouble trying to find one particular song on all this media.  Just take any TI
  50. Writer-like word processor, such as Funnelweb, and use all upper case to enter
  51. each tape or CD titile, artist, and all the songs.  Use any format you want
  52. such as putting all the information for one CD/tape in a separate paragraph.
  53. Save these data files to disk as ordinary text files.  When you want to find
  54. all the references to a particular song use F(ind) S(tring) from within the
  55. word processor to search a single text file, or I(nspect) from within
  56. Funnelweb's Disk Review to search a whole disk of files.  It is easy and fast
  57. since the searches are at assembly language speed. 
  58.   
  59. .NF 
  60. .NA
  61. 50 REM SAVE DSK6.UPPERCASE
  62. 60 REM Converts all LOWER CASE of DV80 file to
  63. UPPER CASE.
  64. 70 REM Resulting ALL UPPER CASE text can easily be
  65. 80 REM searched for text strings by sector editors.
  66. 90 ON ERROR 100
  67. 100 CALL CLEAR
  68. 110 DISPLAY AT(3,2):"CONVERT DV80 TO UPPER CASE"
  69. 120 INPUT "Enter OUTPUT FILE path ":OUTPUTFILE$
  70. 130 INPUT "Enter INPUT FILE path ":INPUTFILE$
  71. 140 OPEN #1:INPUTFILE$,INPUT
  72. 150 OPEN #2:OUTPUTFILE$,APPEND
  73. 160 LINPUT #1:TEXT$
  74. 170 PRINT TEXT$ :: PRINT
  75. 180 FOR T=1 TO LEN(TEXT$)
  76. 190 A=ASC(SEG$(TEXT$,T,1)):: IF A>96 THEN A=A-32
  77. 200 B$=B$&CHR$(A)
  78. 210 NEXT T
  79. 220 PRINT #2:B$ :: B$=""
  80. 240 IF EOF(1)THEN 260
  81. 250 GOTO 160
  82. 260 CLOSE #1
  83. 270 CLOSE #2
  84. 280 GOTO 100
  85. .PL 1 
  86.  
  87.