home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 #38 / q38.d81 / t.disk file 98 < prev    next >
Encoding:
Text File  |  1993-01-01  |  19.1 KB  |  412 lines

  1.  
  2.  
  3.                       D I S K   F I L E   1 2 8 / 9 8
  4.  
  5.                          64 Version by Ron Schahrer
  6.  
  7.                        128 Adaptation by Bill Crooks
  8.  
  9.                      Final 128 Version by Doreen Horne
  10.  
  11.  
  12.     These are the latest fine tunings to my C128 expansion of Ron
  13. Schahrer's DISK FILE C64. This program supersedes the 1997 version which
  14. was published with graphic enhancements on LOADSTAR #36.
  15.  
  16.     There is very little left in my code of the original program by Ron
  17. Schahrer (or the later adaption for the C128 by Bill Crooks) but I stayed
  18. with the original file structure for portability ease for anyone who has
  19. moved to a C128, enjoys its 80 column mode and wants to transfer their C64
  20. data files. This version still uses a 16 character file name with a four
  21. character ID for every name recorded.
  22.  
  23.     I have also kept the basic appearance of the original opening screen to
  24. provide some continuity for those who have used and were comfortable with
  25. the previous versions.
  26.  
  27.     I know DCMR is the database of choice for many who catalog their disk
  28. files but it was not designed to cope with GEOS. Whilst I know there are
  29. GEOS databases I doubt they could store 2100 file names. GEOS itself uses
  30. TRUE ASCII values for file names, which turn up in ordinary database hard
  31. copy as graphic characters.
  32.  
  33.     My DISK FILE programs have two options for text handling. The first
  34. converts all input to upper case and it may be printed eventually entirely
  35. in upper or lower case. The second retains lower case where it finds it but
  36. converts upper case GEOS to our normal ASCII. Whilst the second option
  37. makes for more 'true' looking GEOS files the first makes sorting and
  38. finding of files a lot easier. Both options, if handled correctly by the
  39. user, will eliminate the possiblity of graphic characters turning up in
  40. hard copy.
  41.  
  42.     Because of its size, DISK FILE 128 consists of three separate modules.
  43. For DCMR users who would like to convert their files, there is a stand
  44. alone BASIC program which needs to be loaded and used on its own. The
  45. PRINTER MODULE, which deals with the hard copy of the final catalog lists,
  46. can be accessed from the main program and also be used as a stand alone
  47. program should one wish to treat the final printing process as a separate
  48. exercise. Both these modules will be explained in more detail.
  49.  
  50.     DISK FILE 128/98 explains itself on screen at every input and allows an
  51. escape from any option before an irrevocable action is taken. However it
  52. may be of interest to users of the C64 version to have the extras
  53. explained, especially the fine tunings in the 1998 version.
  54.  
  55.     I enjoy the 'technicolor' of the C128 in 80 column mode and have made
  56. it possible for users to choose their own screen and text colors any time
  57. the database is at the Main Menu. The keys to use are recorded opposite
  58. Option 6.
  59.  
  60.     Once DISK FILE 128/98 is LOADed it has to be decided whether one will
  61. use one drive only or two. Usually, the Catalog disk is permanently in one
  62. drive whilst, if cataloguing disk files, a directory read of each disk is
  63. done in the other.
  64.  
  65.     Also, bearing in mind one's preferences for the final hard copy
  66. appearance of eg. a GEOS catalog, one may choose to stay with only one case
  67. or opt for both upper and lower cases.
  68.  
  69. The MAIN MENU Options
  70. ---------------------
  71.  
  72.  1. Create, adjust or view categories on Catalog disk.
  73.  
  74.     Although this is the first option in the Main Menu one doesn't really
  75. need to worry about the Catalog disk until there is something to save.
  76.  
  77.     How one uses this section depends on what one is cataloguing and also
  78. the number of items involved.
  79.  
  80.     I have GEOS files amongst others on a great many disks gathered from
  81. the public domain and decided that they needed sorting into FONTS,
  82. PICTURES, DRIVERS, ALBUMS, OTHERS and non-GEOS to make them findable when
  83. necessary. After processing all my disks with DISK FILE 128/98 I now have
  84. one Catalog disk solely for GEOS files divided into these separate
  85. categories.
  86.  
  87.     My disk boxes are labelled from A to J and each contains 100 disks,
  88. individually numbered A00/A99 etc. When first processing the disks with the
  89. DISK FILE program, the 4th ID digit for each file name was, eg. A=ART,
  90. B=BUSINESS, C=COPY, G=GEOS, D=DATABASE, etc. (thus J19D was a database on
  91. disk #19 in box J).
  92.  
  93.     All the 4th ID digit 'G' items were subsequently transferred to a
  94. separate file using Option (7) and this file was later edited using the
  95. Bulk Edit option (9) to reflect in the 4th digit F=FONT, P=PICTURE, etc.
  96. and option (7) was used again to establish on a separate Catalog disk my
  97. GEOS itemised files.
  98.  
  99.     In case the reader is wondering, I also have a Catalog disk for the
  100. non-GEOS files in my 10 boxes and it has category files named ART,
  101. BUSINESS, etc.
  102.  
  103.     15 categories are permitted on a Catalog disk and each one may have up
  104. to 2100 files, disk space permitting.
  105.  
  106.  2. Create, or add to, a record file
  107.  
  108.     This is where the database is created. The original version had only
  109. two options - manual input of names or a YES/NO selection of files from a
  110. disk directory with a fixed four digit ID. These two options are still
  111. available but the ID and name of any file may be edited as the files are
  112. presented. The original allowed a directory to be accepted in toto with a
  113. fixed ID. This too is still available but one picks up a lot of subsidiary
  114. files this way, although the option is useful for GEOS disks. Unwanted
  115. extras can be edited out at a later stage.
  116.  
  117.     Whilst public domain disks do not as a rule have graphic characters in
  118. their directories, some commercial disks do. The program edits all such
  119. items out of the file before storing it. The only directory I found that
  120. gave the program any trouble was one that had its link bytes edited to have
  121. track 18 sector 4 read track 18 sector 4. The DISK FILE program is long
  122. enough without writing special code to deal with that sort of quirk! I
  123. labelled the disk and used option 3 of this section to get it into the
  124. records.
  125.  
  126.     There are two further input options. The third speeds up input by
  127. avoiding the 'directory read' query and is for labelled single program
  128. disks particularly. It was also useful when cataloguing my magazines. The
  129. ID 'R8CP' relates to an article about printers in RUN magazine, 1988,
  130. December ($C).
  131.  
  132.     The last allows the user to input an ID which can then be used for
  133. manual input of as many names as necessary until that ID needs to be
  134. changed. By using an ID of '....' one can compile a long list of anything
  135. sorted into alphabetical order.
  136.  
  137.     When using Option 2 all files are sorted into alphabetical order as
  138. accepted/input and it is for this reason that every time Option 2 is
  139. accessed from the Main Menu, with files already in memory, a check is made
  140. to ensure that the sorting is in order before further input is allowed.
  141.  
  142.  3. Print records in memory - screen or hard copy.
  143.  
  144.     Viewing the records on screen really makes use of the C128's 80 column
  145. mode. Now it is possible to view 3 columns of data in one go and one may
  146. now also select the page from which viewing can be done, instead of always
  147. starting from scratch as originally provided.
  148.  
  149.     The hard copy options are available by loading the PRINTER MODULE,
  150. about which more later. Sufficient at this stage to say that one can move
  151. freely between the MAIN PROGRAM and the PRINTER MODULE with all variables
  152. and arrays intact. If the records in memory have not been saved to the
  153. Catalog disk a reminder appears before one is allowed to load the PRINTER
  154. MODULE. Just as a matter of interest, provided the records are not
  155. overwritten by loading another file in the PRINTER MODULE one can return
  156. eventually to the MAIN PROGRAM with the names 'unsaved' still intact.
  157.  
  158.  4. Sort the records in memory.
  159.  
  160.     It was always possible to sort the names into alphabetical order but it
  161. is now also possible to sort the files into an order determined by any one
  162. of the 4 IDs. This is useful when using the BULK EDIT OPTION (9) and the
  163. partial SAVEs available at option 7.
  164.  
  165.     Records can be saved to any Category file in the order in which they
  166. are when the SAVE option (7) is accessed.
  167.  
  168.  5. Search for/change ID.
  169.  
  170.     Now one has two options when selecting to CHANGE an ID. Either changing
  171. all 4 characters of an ID or selecting only one in a position 1 to 4 to
  172. change. Any changes requested will be made to all IDs that match throughout
  173. the records.
  174.  
  175.     Also at this section one may now SEARCH for records relating to a
  176. selected ID using wild cards in the ID. On screen is available a full list
  177. of wild card patterns acceptable, eg. '***G' will produce a list of all
  178. files in memory which have a 4th ID character of 'G' and J10* will produce
  179. a list of all names which relate to disk (or magazine) J10. 
  180.  
  181.     A single column hard copy list can be produced at the same time. Should
  182. the user have requested the GEOS upper/lower case option a reminder will be
  183. given to overtype the secondary address value with a value suitable to the
  184. printer concerned.
  185.  
  186.     The printer commands were designed for use with the CBM 1250 printer
  187. but as the program is written in BASIC this can be altered to suit other
  188. printers. LIST 4300-4319. Once the user has substituted her/his own printer
  189. commands, the whole program can be reSAVEd for customized future use.
  190.  
  191.  6. View directory/Format a disk.
  192.  
  193.     The directories of the drives in use may be viewed.
  194.  
  195.     Formatting a disk requires the full string 'yes' to be input if one
  196. wishes to format a disk whilst using the program. This could become
  197. necessary if one's file is too long to save on the Catalog disk in the
  198. drive and one needs to create a new Catalog disk to continue file
  199. processing.
  200.  
  201.  7. Save file (whole or partial).
  202.  
  203.     Here there are two major sub-sections. Firstly, saving ALL the records
  204. in memory to:
  205.  
  206.     (a) a new, unopened file (even one not yet included in the prepared
  207. Category file (Option 1).
  208.  
  209.     (b) Replacing data in the originating file with the data in memory (it
  210. may have been added to or edited).
  211.  
  212.     (c) A new option - appending the data to an existing file (the user can
  213. recall the whole file later for resorting). When using this sub-section to
  214. append data to an already lengthy file the program appears to stall but it
  215. is actually the drive which needs time to find the end of the file
  216. requested before it can add to it.
  217.  
  218.     The second sub-section is saving selected records only. This ability
  219. proved a real boon once included. A full explanation of the possibilities
  220. here are explained on screen within the program. Sufficient to say that up
  221. to 1000 records at a time can be selected by name or ID to save to a new
  222. file or append to an existing one.
  223.  
  224.     When using any part of Option 7 a check of blocks free on the
  225. destination disk is made to ensure that there is sufficient space to carry
  226. out the designated operation. Also when adding to an existing file the
  227. program checks the probable file total to ensure that 2100 names are not
  228. exceeded.
  229.  
  230.  8. Load file/Clear records in memory/Change file format.
  231.  
  232.     If there are already records in memory, the user is asked whether these
  233. are to be cleared or whether the file to be LOADed should be added to those
  234. in memory.
  235.  
  236.     If the file is cleared one may request a change in the file format
  237. (upper case, or upper/lower case). This change in file format may be
  238. requested only when there are no records in memory.
  239.  
  240.     To proceed with LOADing the Catalog disk is accessed and one may then
  241. select any one of the categories listed. The names of active files (those
  242. which already contain data) may be requested. The actual number of records
  243. in the file selected is read and added to anything already in memory.
  244. LOADing proceeds if the total is below 2100.
  245.  
  246.     Files on Catalog disks created by DISK FILE C64 and the Bill Crooks
  247. version for the C128 will be LOADed by this program but the user is advised
  248. that they are in an 'old format' and cannot be used when the files need to
  249. be reSAVEd. It is a bit tedious but if a user wants to make a Catalog disk
  250. compatible with this DISK FILE 128/98 in one go, it would be necessary to
  251. use Options (8) then (7) to transfer the files from one format to another.
  252.  
  253.     The observant user will note that there are no '.c' files in the old
  254. format and that category files could be of any length. The '.c' files keep
  255. a record of the number of names in the related category files and are
  256. necessary for the various procedures now possible under Option (7).
  257.  
  258.  9. Bulk edit/quick delete, find or edit record details.
  259.  
  260.     (a) Quick delete using the ID. The same wild cards as before can be
  261. used to find file names and the user may then decide when the name is
  262. presented whether it is to be removed or not.
  263.  
  264.     (b) Find/edit using NAME. A name can be searched for and when presented
  265. either it or the ID can be edited or the whole item removed.
  266.  
  267.     (c) A new option - Bulk edit file in memory. For this option on screen
  268. information is available. Basically one may select a name or ID from which
  269. the records are to be presented on screen and any name may then be edited
  270. or removed. When on screen editing is requested a '?' appears to the left
  271. of the first item on the screen. Only typing RETURN progresses down the
  272. screen. Make such alterations as are required, type RETURN and then repeat
  273. it until the last item on the screen has been 'done'. One can then page
  274. further into the file, page backwards (no further than the original name/ID
  275. specified) or quit.
  276.  
  277.     A note is kept of editing or files removed whilst using any of the sub-
  278. sections of this Option. Before one may again use Options (2) or (7), the
  279. file has to have deleted items removed by using Option (4) to tidy up the
  280. records whilst they are resorted.
  281.  
  282.  0. Exit To BASIC.
  283.  
  284.     Using this Option to quit the program ensures that all files are closed
  285. and that the user is made aware of any records in memory which have not
  286. been saved to a Catalog disk. Also it clears the memory location which
  287. records the transfer of the main program to the PRINTER MODULE and vice
  288. versa.
  289.  
  290.     There are very few bytes left in memory after the main BASIC program
  291. before what is left of BANK 0 is used for other purposes so there just is
  292. no room to add a return to LOADSTAR. If it is wished to do so from either
  293. the main program or either of the two special purpose modules then insert
  294. Side 1 of the LOADSTAR disk into the preferred drive and type:
  295. LOAD "HELLO CONNECT",(drive number)
  296.  
  297.  
  298. PRINTER MODULE
  299. --------------
  300.  
  301.     Like the main program the printer commands were programmed with a CBM
  302. 1250 in mind. LISTing line 0 of this module provides information about the
  303. line numbers within the module where the commands can be found. They can be
  304. altered to suit the user's printer and the module can then be reSAVEd for
  305. further use.
  306.  
  307.     The PRINTER MODULE can be accessed from Option (3) of the main program
  308. or it can be LOADed from BASIC in the first instance. Coming from the main
  309. program there may already be records in memory for which hard copy is
  310. required (these files are noted at Option (4) and may be seen at (3).
  311.  
  312.     This module is simple to use. Any file LOADed via Option (4) overwrites
  313. anything already in memory, so be sure that if any names are brought from
  314. the main program for printing before they are SAVEd to a Catalog disk that
  315. a return is made via Option (6) or they will not be available to update the
  316. Catalog disk (unless some retyping is done!) A warning is given before
  317. leaving the main program but the user has the option to proceed to
  318. printing.
  319.  
  320.     Options 1 and 2 enable the printing of the files in memory in either 3
  321. columns or 5 (condensed print). When using these options the files in
  322. memory are checked for lower case characters. If any are found the user is
  323. reminded to furnish a secondary address for printer output. Failure to do
  324. so will cause the upper/lower case GEOS file to be printed in upper case
  325. and graphics.
  326.  
  327.     If no lower case characters are found the user may have the file
  328. printed entirely in upper or lower case. Here again if lower case is
  329. selected the user will be reminded to furnish a secondary address, but
  330. failure to do so just causes all output to be printed in upper case.
  331.  
  332.     Depending upon the user's requirements a return can be made to the main
  333. program with all files in memory, variables and arrays intact - or an exit
  334. can be made to BASIC.
  335.  
  336.  
  337. DCMR CONVERTER
  338. --------------
  339.  
  340.     This is for those who wish to convert their data files from DCMR format
  341. to that used by DISK FILE 128/98.
  342.  
  343.     The conversions may be made using two drives. If only one is available
  344. then it will be necessary to swop source and destination disks when
  345. prompted as the files in both formats will have the same names.
  346.  
  347.     It should be noted that one DCMR data disk will produce one DISK FILE
  348. data disk (or even need a second one if the DCMR source disk has few free
  349. blocks. DISK FILE data use more disk space than do DCMR data.)
  350.  
  351.     To start, the directory of the DCMR data disk is presented, file by
  352. file, and the user can select which files are to be converted and
  353. transferred. As the DISK FILE Catalog disk limits categories to 15, this is
  354. the maximum that will be accepted for transfer at one time. Any more will
  355. need to be done as a separate exercise when the first batch has been dealt
  356. with and they will need a destination disk which has not already been used
  357. by the DISK FILE 128/98 program as a Catalog disk.
  358.  
  359.     Before any conversions are transferred the destination disk is checked
  360. to ensure that it does not already contain a CATEGORIES file. If it does a
  361. new disk will have to be placed in the destination drive before the
  362. conversions continue.
  363.  
  364.     Before converted files are transferred the destination disk is also
  365. checked to ensure that it has sufficient blocks free to record the file
  366. concerned.
  367.  
  368.     After the successful transfer of all nominated files, or as many as
  369. there is space for, a CATEGORIES file is written on the DISK FILE data disk
  370. and it is then ready for use with the DISK FILE 128/98 program. 
  371.  
  372.     Eventually when all transfers are done the LOAD and SAVE options in the
  373. DISK FILE 128/98 program can be used to organise the new data according to
  374. the user's requirements.
  375.  
  376.     Due to the lack of any identifying information in the DCMR files the
  377. conversion program will endeavour to convert any PRG file nominated when
  378. the disk directory is presented. If a user is not certain about the
  379. identity of any file, insert the disk containing this file into the drive
  380. then type:
  381.  
  382.  GOTO 7000
  383.  
  384.  After answering the prompts, the file will be read and displayed on
  385. screen. The user can then decide whether it is suitable for conversion or
  386. not,
  387.  
  388.  
  389. A FINAL NOTE
  390. ------------
  391.  
  392.     The DISK FILE 128/98 program and its modules are as user friendly as I
  393. have been able to make them. It is a complex program but will I hope prove
  394. a useful application for those who like to organise their collections, be
  395. they disks, magazines, tapes, books or whatever, into catalog lists in
  396. which they are easily locatable.
  397.  
  398.     The original DISK FILE C64 was released as freeware by its programmer.
  399. Despite all the hours I have put into expanding it to use the many
  400. interesting features of the C128 in 80 column mode and all that extra
  401. memory, I have decided to consign my endeavours to the public domain.
  402. However should anyone have any suggestions for other useful functions that
  403. could be included, I would be very happy to hear them.
  404.  
  405. Doreen Horne
  406. 70 Fursden Road
  407. CARINA, Q. 4152
  408. AUSTRALIA
  409.  
  410.                   \\\\\ R - Run    RETURN - Menu \\\\\
  411.  
  412.