home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / k / kp5.zip / KP5PAKE.EXE / KPI.DOC < prev    next >
Text File  |  1992-01-28  |  2KB  |  54 lines

  1.  
  2.  
  3.          KPI.DOC  6/3/91       copyright (c) 1991 by Peter Charpentier
  4.          -------------------------------------------------------------
  5.  
  6.          KPI.EXE is used to make major structural changes to KP5 files.
  7.          By 'major' I mean changes that will cause data to be inserted
  8.          or deleted within records, not just truncated or padded.
  9.  
  10.          KPI syntax:
  11.  
  12.             kpi InFile OutFile SpecFile
  13.  
  14.                 InFile   - kp5 data set to be modified
  15.                 OutFile  - new (modified) kp5 data set
  16.                 SpecFile - specification file
  17.  
  18.          Example:
  19.  
  20.              kpi c:\kp5\files\studyx c:\kp5\files\studyx2 studyx.kpi
  21.  
  22.          You cannot use the same name for InFile and OutFile.  You may,
  23.          however, use the DOS to change the name of the new file back
  24.          to the original name, after you have archived the original.
  25.  
  26.          The SpecFile may be created using any text editor, and may
  27.          contain any number of the following kinds of specification
  28.          records:
  29.  
  30.             at card xxx, column yyy insert zzz columns
  31.             at card xxx, column yyy remove zzz columns
  32.             insert new card after card xxx
  33.             insert new card before card xxx
  34.             remove card xxx
  35.             ncards=nnn
  36.             card size=sss
  37.  
  38.          A column insertion or deletion will shift data to the right or
  39.          left on the indicated card.  Data may be lost if the card size
  40.          has not been changed.  A card insertion or deletion will
  41.          result in card(s) being shifted down or up.  KPI will ask if
  42.          the number of cards per record should be changed.
  43.  
  44.          All of the card and column specifications refer to the OLD
  45.          structure.
  46.  
  47.          SpecFile example:
  48.  
  49.             remove card 3
  50.             insert new card before card 1
  51.             insert new card after card 5
  52.             at card 1,column 30 insert 3 columns
  53.             at card 2,column 20 delete 1 column
  54.