home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 16 / 16.iso / t / t206 / 1.img / QUICKREF.TXT < prev    next >
Encoding:
Text File  |  1993-04-25  |  5.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.           QUICK REFERENCE
  9.  
  10.           Program        DELIMIT
  11.           Environment    DOS, Turbo Pascal 3.0 - 7.0
  12.           Author         Roy Grosbach
  13.           Copyright      Copyright 1987-1993 Roy Grosbach
  14.           Date           DELIMIT V3.27 TP7.0 04/25/93
  15.  
  16.           Some of DELIMIT's MANY uses:
  17.                   _______
  18.  
  19.             -  Convert a print  file (report printed  to disk) to  a file to  be
  20.                read into  a spread sheet or data base (remove the report headers
  21.                and convert numbers).
  22.  
  23.             -  Convert a fixed format file to a comma (or tab) delimited file.
  24.  
  25.             -  Extract selected  fields (i.e.  totals from a  print file,  to be
  26.                read  into a  spread  sheet  or data  base,  disregard all  other
  27.                fields).
  28.  
  29.             -  Extract selected  fields from  a fixed  record format  (mainframe
  30.                data base) for importing to a data base.
  31.  
  32.             -  Extract selected  fields from  a fixed format  file and  create a
  33.                smaller fixed format file.
  34.  
  35.             -  Reformat a fixed format file  into a different fixed format file.
  36.                (data conversion from one system to another).
  37.  
  38.           The Numeric fields in comma (or  tab) delimited files are expected NOT
  39.           to have commas or other non numeric characters.  The negative  sign is
  40.           expected to be in the first position of the field.  Many reports use a
  41.           negative sign at the last position of the field,  DELIMIT will move it
  42.                                                             _______
  43.           to  the front.   Other  reports  use parenthesis  to inclose  negative
  44.           amounts,  which DELIMIT  removes, and  places a  negative sign  in the
  45.                           _______
  46.           first position.
  47.  
  48.           Text  fields may  be moved as  is (Move  parameter), or  surrounded by
  49.           double quotes (Character parameter).
  50.  
  51.           Fields  are separated  by  commas,  or by  a  user defined  character,
  52.           (Separator parameter) or  by nothing.  IF  fields are separated by  NO
  53.           character, the  fields are fixed  format.  IF fields  are separated by
  54.           any 'separator', extra spaces are trimmed from the fields.
  55.  
  56.           Records (lines) are separated by CR-LF (Carriage Return-Line Feed), by
  57.           a user defined character (Record separator parameter), or by nothing.
  58.  
  59.           Command line:
  60.             DELIMIT <parmfile> <input file> <output file>
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.           QUICK REFERENCE
  80.  
  81.           Valid PARAMETER TYPES
  82.           * - comment    *    All text is ignored.
  83.  
  84.           H - Header     H    <position> <length> <text>    {comments}
  85.                     text to be excluded (all  lines that match are excluded from
  86.                     conversion).  Up 10 Headers parms.
  87.  
  88.           D - Detail     D    <position> <length> <text>    {Comments}
  89.                     text to be included (ONLY records that match are converted).
  90.                     Up to 10 Detail parms.
  91.  
  92.           N - Numeric    N    <position> <length>           {Comments}
  93.                     Leading  zeros and  commas  are  removed.    Formatting  for
  94.                     negative  numbers  is  removed  and  a  '-'  placed  at  the
  95.                     beginning  of the field.  IF the field separator is Snone or
  96.                     Rnone, then spaces are included to right justify the field.
  97.  
  98.           @ - Signed Numeric  @    <position> <length>      {Comments}
  99.                     Signed fields from  the mainframe replace the  LAST position
  100.                     with a  character that  represents the number  AND the  sign
  101.                     (positive or negative).  Leading  zeros are removed.  IF the
  102.                     field separator is Snone or  Rnone, then spaces are included
  103.                     to right justify the field.
  104.  
  105.           C - Character  C    <position> <length>           {Comments}
  106.                     Surrounds field  with double  quotes.   Trailing blanks  are
  107.                     removed.
  108.  
  109.           M - Move       M    <position> <length>           {Comments}
  110.                     Does  not surround with quotes, trailing spaces are removed.
  111.                     IF  the field  separator is  Snone or  Rnone, then  trailing
  112.                     spaces are NOT removed. 
  113.  
  114.           L - Length     L    <length>                      {Comments}
  115.                     Length of  fixed records  (that have  no CR-LF).   Sometimes
  116.                     data files  from main frames  have no end of  record marker.
  117.                     Can be up to 4000.
  118.  
  119.           S - Separator  S<separator between fields> 
  120.                     Change the field separator from a comma to something else.
  121.  
  122.                **   must NOT have a space between the 'S' and the separator
  123.                          S\nnn - nnn = ASCII code
  124.  
  125.           R - Record Sep R<separator between records>
  126.                     Change the record separator from a CR-LF to something else.
  127.  
  128.                **   must NOT have a space between the 'R' and the separator
  129.                          R\nnn - nnn = ASCII code
  130.  
  131.                **   NOTE Snone or Rnone replaces the separator with NOTHING!
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.