home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / dbutil.zip / COPYFLD.DOC < prev    next >
Text File  |  1987-02-14  |  4KB  |  71 lines

  1.      Documentation Maintained by PC Professional Users Group
  2.                P.O. Box 2350 Wilmington DE. 19899
  3. FILENAME:               COPYFLD.PRG
  4. PROGRAM NAME:           Copyfield program
  5. VERSION NUMBER:         1.0
  6. VERSION DATE:           00-00-00
  7. AUTHOR (ORIGINAL):      Kenneth Eagle
  8. " ADDRESS/PHONE:        2304 Rockwell Rd.      302-475-2763
  9. LATEST REVISOR:         .
  10. " ADDRESS/PHONE:        .
  11. OBTAINED FROM:          Author
  12. PROGRAM TYPE:           dBASEII Utility
  13. ********************** EQUIPMENT REQUIRED **********************
  14. The dBASEII Program
  15. ********************* PURPOSE; DESCRIPTION *********************
  16. A generalized dBASEII utility to copy a field or combination of
  17. fields from one file to another.  It has much greater speed than
  18. the JOIN operation, and can be used in a number of different ways.
  19. ************************* INSTRUCTIONS *************************
  20. -Copy this program onto your dBASE working disk
  21. -Bootup in any DOS (if not already done).
  22. -Type DBASE <RETURN/ENTER key>
  23. -Type DO COPYFLD <RETURN/ENTER key>
  24. -Further instructions included in the program.
  25. -To end program prematurely, push Esc key
  26.  
  27. ************************* PECULIARITIES ************************
  28. -There must be room on your data disk for up to 2 index files
  29.  if your TO and FROM files are not in order.
  30. -Some earlier versions of the dBASE program (eg CP/M) require
  31.  that a command program of this sort have an extension of .CMD.
  32.  If you have one of these versions, rename the program to
  33.  COPYFLD.CMD (This utility has been tested on both an IBM-PC
  34.  and a SUPERBRAIN II.
  35. -The default convention for macros has been used i.e. an &
  36.  If your dBASE has been installed with some other symbol,
  37.  you must change all "&"s to that symbol 
  38. *********************** GENERAL COMMENTS ***********************
  39. -Copyright 1983 by Kenneth Eagle 
  40.  This program is contributed to the public domain with the
  41.  restriction that it may not be used for commercial purposes
  42.  without written permission from the author.
  43.  
  44.  A dBASEII program to copy field(s) from one file to another
  45.  Both files must contain a common 'KEY FIELD'.
  46.  Both files must be in order of (or indexed on) 'KEYFIELD'.
  47.    (the program will do this on a temporary basis if you like)
  48.  FROM file must have a KEYFIELD entry for every one in the TO file.
  49.  As presently programmed, the TO file must already be structured
  50.  with the field to be copied into already created (filled or empty)
  51.  
  52. -I have found this utility to be useful for a number of different
  53.  purposes.  I have used it to change identification codes using
  54.  a cross-reference list as the FROM file.  It is very effective
  55.  for "merging" one or two fields from one file to another without
  56.  the complication (and slowness!) of a third file created by the
  57.  "JOIN" operation.  Another useful feature is the ability to 
  58.  combine two or more fields into a single field "as you go".
  59.  For example. Suppose the FROM file has two fields called
  60.  FIRSTNAME and LASTNAME with entries of KEN and EAGLE respectively,
  61.  and you want to combine these into a single field called NAME in
  62.  the TO file. When the program asks for the FROM field name, you
  63.  respond with LASTNAME-","-FIRSTNAME (using standard dBASE con-
  64.  ventions). The answer to the TO field name question would be
  65.  NAME. The result in the TO file's NAME field would be a single
  66.  entry of: EAGLE,KEN .  The more I work with this utility, the
  67.  more uses I find for it.
  68.  
  69. -An improvement would be: add a way to automatically create the
  70.  new field in the TO file when it doesn't already exist 
  71.