home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / VORX / PS420.ZIP / PS420.DOC < prev    next >
Text File  |  1989-04-01  |  51KB  |  1,189 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                     ParaSort v4.20                                    ParaSort v4.20                                    ______________
  9.  
  10.                                      A Product of                                     A Product of                                     ____________
  11.  
  12.                                 Christopher J. DeGreef                                Christopher J. DeGreef                                ______________________
  13.                                    6623 Stowe Court                                   6623 Stowe Court                                   ________________
  14.                                    Lisle, IL 60532                                   Lisle, IL 60532                                   _______________
  15.  
  16.  
  17.           Install ParaSort by simply copying PS.EXE, PSP.EXE, and PS.ERR to
  18.           the same directory on your disk, floppy or hard drive, it doesn't
  19.           matter.  Then add that directory to your path.
  20.  
  21.           Files:    (* indicates for registered users only.)
  22.  
  23.                PS.EXE         ParaSort v4.20 executable program
  24.                PSP.EXE        ParaSort Compiler v1.20 executable program
  25.                PS.ERR         ParaSort v4.20 error messages
  26.                PS420.DOC      ParaSort v1.20 - v4.20 documentation
  27.                * *.C          ParaSort Compiler v1.20 Turboc source code
  28.  
  29.                PSDBIII.EXE    dBASE III file interface
  30.                PSDBIII.DOC    dBASE III interface help file
  31.                * PSDBIII.C    dBASE interface TURBOC source code
  32.  
  33.                PSDEMO.BAT     Demonstration batch file
  34.                PSDEMO__.SPC   ParaSort demonstration sort specifications
  35.  
  36.           ParaSort can:
  37.  
  38.           -    COPY, SORT and MERGE your files
  39.           -    reformatting the input file as it is read if requested
  40.           -    skipping and limiting the input and/or output records
  41.           -    including/excluding dBASE header records
  42.           -    writing the output records to one or more output files
  43.           -    SELECTing  only certain  records  for  each  file  based  on
  44.                complex record selection  criteria. Include based on  record
  45.                and byte position on input and/or output
  46.           -    formatting each output  file exactly how you would  like it,
  47.                including the ability to calculate fields
  48.           -    sort the  output on as many  key fields as  necessary of any
  49.                data type
  50.           -    NEW data type called QUOTED allows  you to define a sort key
  51.                that  may  contain  quotes,  tick  marks,  and  commas,  and
  52.                PARASORT will ignore them
  53.           -    Sort on ascending, descending, and absolute values of keys.
  54.           -    convert  fixed length records to variable length records and
  55.                back again
  56.           -    eliminate duplicates  or place  them in  an expected  order;
  57.                first, last, or don't care
  58.           -    use a special workdisk for more efficient sorting.
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.                                COMMAND SYNTAX DIAGRAMS                               COMMAND SYNTAX DIAGRAMS                               _______________________
  74.  
  75.  
  76.           SORT                <input file name>
  77.           COPY
  78.  
  79.           MERGE               <primary file name>, <secondary file name>
  80.  
  81.           * GIVING            <output file name>
  82.  
  83.           LRECL               <size of record in bytes>
  84.  
  85.           RECORDS             <number of records in input file(s)>
  86.           
  87.           VARIABLEINPUT
  88.           VARIABLEOUTPUT
  89.  
  90.           * SELECT            <equation>
  91.  
  92.           * INRECORD          <type>,<output pos> <equation>
  93.           * OUTRECORD         - or -
  94.                               C,<out pos>,<length>,<precision> <equation>
  95.  
  96.  
  97.           DUPS                FIRST
  98.           NODUPS              - or -
  99.                               LAST
  100.                               - or -
  101.                               DONTCARE
  102.  
  103.           * INLIMITS          <number  of  records  to  skip>,  <number  of
  104.           * OUTLIMITS         records to take>
  105.                               - or -
  106.                               <number of records to skip>, ALL
  107.  
  108.           * CHARACTER         <input record position>,<length>  [direction]
  109.           * QUOTED
  110.           * DISPLAY
  111.  
  112.           * INTEGER           <input record position> [direction]
  113.           * UNSIGNED
  114.           * LONG
  115.           * FLOAT
  116.           * DOUBLE
  117.  
  118.           [direction]         ASCENDING
  119.                               AASCENDING
  120.                               DESCENDING
  121.                               ADESCENDING
  122.  
  123.  
  124.  
  125.                                         - 2 -
  126.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.                                COMMAND SYNTAX DIAGRAMS                               COMMAND SYNTAX DIAGRAMS                               _______________________
  140.  
  141.  
  142.           TRANSFER            <number of bytes>
  143.  
  144.           WORKDISK            <one character>
  145.  
  146.  
  147.  
  148.  
  149.           * Command may be repeated as required.
  150.           Notes:
  151.                Capitalized words are  required.  Replace  bracketed phrases
  152.                with the requested  information.  Commas are  required where
  153.                indicated.    -or- separates alternate forms  of the command
  154.                and is not part of the command itself.
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.                                         - 3 -
  192.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.                       COMMAND LINE OPTIONS and GENERAL COMMENTS                      COMMAND LINE OPTIONS and GENERAL COMMENTS                      _________________________________________
  206.  
  207.  
  208.           @<file name>        Used to specify a file  on disk that contains
  209.                               ParaSort specifications.   This  file can  be
  210.                               edited with any ASCII word processor.
  211.  
  212.           -B<file name>       Used  to   specify  a  compiled   (BIN)  sort
  213.                               specification  file.   If  sort commands  are
  214.                               entered this will be the output file name for
  215.                               the compiled BIN  file.  If no  sort commands
  216.                               are specified,  this will  be the  input file
  217.                               name   and   ParaSort  will   re-process  the
  218.                               commands that were entered when the  original
  219.                               sort was executed.
  220.  
  221.           -S                  Used  to cause  a statistical  summary to  be
  222.                               displayed  on the  screen after  ParaSort has
  223.                               completed.
  224.  
  225.           -U                  Used to convert all literals in parameters to
  226.                               upper case.
  227.  
  228.           -M<K bytes>         Used to limit  the amount of memory  that the
  229.                               sort will use.
  230.  
  231.           -O                  Used to suppress  the use of  a configuration
  232.                               file.  A configuration  file contains regular
  233.                               ParaSort   commands   and,  if   present,  is
  234.                               included  in  each   sort  before  any  other
  235.                               commands are  processed.  Its name  is always
  236.                               PS.CFG  and  it  must  reside  in  the   same
  237.                               directory as PS.EXE to  be found by ParaSort.
  238.                               Sort commands and command line options can be
  239.                               included in the configuration file.
  240.  
  241.           -T                  Used to suppress  the truncation  (truncation                                      ________
  242.                               is the default) of extra  bytes at the end of
  243.                               a file.  When the file size is not a multiple
  244.                               of  LRECL  the remaining  bytes  are normally
  245.                               dropped.  With this option they are made into
  246.                               a new record and padded with NULLS (0x00).
  247.  
  248.           -N                  Used to  cause  ParaSort to  create an  audio
  249.                               response when the  processing has  completed.
  250.                               The  sound  will  continue  until  a  key  is
  251.                               pressed.
  252.  
  253.  
  254.  
  255.  
  256.  
  257.                                         - 4 -
  258.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.                       COMMAND LINE OPTIONS and GENERAL COMMENTS                      COMMAND LINE OPTIONS and GENERAL COMMENTS                      _________________________________________
  272.  
  273.  
  274.           DOS Sort program emulation extensions
  275.  
  276.  
  277.           /R                  The  DOS  sort command  to  reverse  sort the
  278.                               file.
  279.  
  280.           /+<number>          The DOS  sort command  to change  the default
  281.                               sorting  position  from  the  first  byte  to
  282.                               another position.
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.                                         - 5 -
  324.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.                       COMMAND LINE OPTIONS and GENERAL COMMENTS                      COMMAND LINE OPTIONS and GENERAL COMMENTS                      _________________________________________
  338.  
  339.  
  340.           Literals
  341.  
  342.           A literal is a constant value that will be inserted into a record
  343.           or used as a comparison in a SELECT command.  A literal takes the
  344.           format of t'...' where "t" is  the type of data that the  literal
  345.           represents.  See the  definition of "type".  For  example, if you
  346.           wish to  compare an  integer number in  a record and  select only
  347.           those that are  greater than 100 you would code  a select command
  348.           something like this:
  349.  
  350.                SELECT  (i,1 > i'100')
  351.  
  352.           This  says that all records with an  integer in position one that
  353.           is greater that 100 should be selected.
  354.  
  355.                OUTRECORD C,1,.  (C'AAAAA')
  356.  
  357.           This says that  the output record  consists of a character  field
  358.           starting in position one and is made up of 5 characters (5 bytes)
  359.           of the quoted literal.   Since the literal-equation evaluates  to
  360.           "AAAAA"  the output  record would  contain a  5 character  field,
  361.           "AAAAA".
  362.  
  363.           A quote may be placed within a literal.  Literals can be enclosed
  364.           in either single quote marks or  double.  To include double quote
  365.           marks as part of the literal, do something like this:
  366.  
  367.                'Tom said "Hello world".'
  368.  
  369.           To include single quote marks in a literal do this instead:
  370.  
  371.                "Tom said 'Hello world'."
  372.  
  373.           Be careful  when using literals on the command line.  Most often,
  374.           it is safest to  use literals in SPECification files,  where they
  375.           always work  as stated.  When they are  used on the command line,
  376.           DOS tends to pre-edit them and  eliminate the double quote marks.
  377.           Also, DOS treats the  > and <, as well as the | as IO redirection
  378.           characters, regardless of quotation marks.
  379.  
  380.  
  381.           System Literals
  382.  
  383.           Several  system  variables  may  be   accessed  though  type  "S"
  384.           literals.   Within the  quotes of an  "S" literal  can be  one of
  385.           several system variable names.  At run time, ParaSort will insert
  386.           the value of the system variable inplace of the system variable.
  387.  
  388.  
  389.                                         - 6 -
  390.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.                       COMMAND LINE OPTIONS and GENERAL COMMENTS                      COMMAND LINE OPTIONS and GENERAL COMMENTS                      _________________________________________
  404.  
  405.  
  406.           The system variables are:
  407.  
  408.           s"RECIN"       The record counter of the input file.
  409.           s"RECOUT"      The record counter of the output file.
  410.           s"POSIN"       The byte counter of the input file.
  411.           s"POSOUT"      The byte counter of the output file.
  412.           s"RND"         A random, positive integer, 0 to 32767.
  413.           s"TRUE"        The integer 1.  Evaluates to true in equations.
  414.  
  415.  
  416.           Comments
  417.  
  418.           Comments can be freely added to the sort commands except they may
  419.           not be inserted  in literals or file names, or  break up reserved
  420.           words.   A comment  is identified  with a  leading sharp  (#) and
  421.           ended with a sharp character.   All characters between the shsrps
  422.           are  comments and will be displayed on the console as ParaSort is
  423.           running.  Comments are retained in the compiled SBN files so that
  424.           they can be displayed on subsequent executions.
  425.  
  426.  
  427.           General
  428.  
  429.           ParaSort commands may be entered on the command line at execution
  430.           time,  in specification files (using  the @ command line option),
  431.           and in the  configuration file (PS.CFG  in the same directory  as
  432.           PS.EXE).     Command  line   options  can  not   be  included  in
  433.           specification files.   Also, command line options  are not stored
  434.           in compiled SBN files.
  435.  
  436.           SBN (compiled sort BIN) files are  created (overwritten) when new
  437.           ParaSort commands  are specified and  the -B option is  used.  If
  438.           the -B option is  used and no  new ParaSort commands are  entered
  439.           then the SBN file must exist and it will be used to determine the
  440.           processing that will take place.
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.                                         - 7 -
  456.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  470.  
  471.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  472.                          Version                         Version                         _______
  473.  
  474.  
  475.           AASCENDING     aasc   Use this after  the definition of a  key to
  476.                                 indicate that  it should be sorted in ASCII
  477.                                 absolute  ascending  sequence.     Absolute
  478.                                 means  without  regard to  numeric  sign or
  479.                                 alphabetic case.
  480.  
  481.           ADESCENDING    adesc  Use this after  the definition of a  key to
  482.                                 indicate that it should be  sorted in ASCII
  483.                                 absolute  descending  sequence.    Absolute
  484.                                 means  without  regard to  numeric  sign or
  485.                                 alphabetic case.
  486.  
  487.           ASCENDING      asc    Use this after  the definition of a  key to
  488.                                 indicate  that it should be sorted in ASCII
  489.                                 ascending sequence.
  490.  
  491.           CHARACTER      c      Used to specify the location and  length of
  492.                                 a string of characters for a key.
  493.  
  494.           COPY           cop    Used  to  initiate  the  copy  function  of
  495.                                 ParaSort.   No keys  can  be specified  and
  496.                                 LRECL   must   be   specified   if   record
  497.                                 modification commands are issued.  Under no
  498.                                 circumstances can multiple output  files be
  499.                                 specified  during  a copy  operation.   Use
  500.                                 SORT  instead.   SORTing  on a  newly added
  501.                                 field of  s'REC' will effectively  copy the
  502.                                 file without changing the order.
  503.  
  504.           DESCENDING     desc   Use this after  the definition of a  key to
  505.                                 indicate that it should be sorted  in ASCII
  506.                                 descending sequence.
  507.  
  508.           DISPLAY        dn     Used to specify the  location and length of
  509.                                 a display  numeric field  to be  used as  a
  510.                                 sort key.  A display numeric field contains
  511.                                 printable numbers and optionally  a decimal
  512.                                 point, leading  sign, an  E for  scientific
  513.                                 notation with an optional  sign immediately
  514.                                 following it, and commas.
  515.  
  516.                                   format= <sn><0-9><.><0-9> <E><sn><0-9>
  517.  
  518.  
  519.  
  520.  
  521.                                         - 8 -
  522.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  536.  
  537.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  538.                          Version                         Version                         _______
  539.  
  540.  
  541.           DONTCARE       d      Use  in  conjunction  with the  DUPS/NODUPS
  542.                                 commands.   Indicates to ParaSort  that you
  543.                                 don't  have a preference  for which  one of
  544.                                 duplicate records are ordered  first.  Most
  545.                                 efficient of duplicate options.
  546.  
  547.           DOUBLE         d      Used  to specify  the location of  a double
  548.                                 real  number to  be  used as  a  key.   The
  549.                                 declaration of  this type  of field in  the
  550.                                 "C" language  is  LONG FLOAT  and is  eight
  551.                                 bytes in length.
  552.  
  553.           EQUATIONS             Equations are statements that are evaluated
  554.                                 at run  time by  ParaSort.   Equations  are
  555.                                 used in  three commands;   SELECT, INRECORD
  556.                                 and OUTRECORD.   In the SELECT command, the
  557.                                 equation  evaluates  to  a  true  or  false
  558.                                 value.  True is any  number that is greater
  559.                                 than zero or any character string that  has
  560.                                 a  length greater  than  zero.   All  other
  561.                                 equation values are false.
  562.  
  563.                                 In the INRECORD and OUTRECORD commands, the
  564.                                 equation  returns  a  numeric or  character
  565.                                 string value.
  566.  
  567.                                 All  equations must  begin and  end with  a
  568.                                 pair of brackets  (one of: (,  [, {, },  ],
  569.                                 )).  Pairs of brackets may be used anywhere
  570.                                 within the equation to  force the order  of
  571.                                 evaluation.
  572.  
  573.                                 Many operators are accepted:
  574.  
  575.                                    addition            +, PLUS
  576.                                    subtraction         -, MINUS
  577.                                    multiplication      *, TIMES
  578.                                    division            /, DIV
  579.  
  580.                                    equal to            =, EQUALS, EQ
  581.                                    not equal to        !=, NE, <>
  582.                                    greater than        >, GT
  583.                                    not greater than    !>, NG, <=
  584.                                    less than           <, LT
  585.                                    not less than       !<, NL, >=
  586.  
  587.                                         - 9 -
  588.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  602.  
  603.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  604.                          Version                         Version                         _______
  605.  
  606.  
  607.  
  608.                                    logical and         AND
  609.                                    logical or          OR
  610.  
  611.                                 Variables can  be of  two different  types;
  612.                                 field location references  and literals.  A
  613.                                 location reference is comprised  of a field
  614.                                 type, a position in the  record, and if the
  615.                                 field type is C or X, a length.  The record
  616.                                 that contains  the field  is determined  by
  617.                                 the command that contains the equation.  If
  618.                                 the SELECT  command is being  used then the
  619.                                 reformatted input  record will  be what  is
  620.                                 refered to.   If  the  INRECORD command  is
  621.                                 being  used  then  the   unformatted  input
  622.                                 record  is  referred  to,     and  if   the
  623.                                 OUTRECORD command  is being  used then  the
  624.                                 reformatted input record is used.
  625.  
  626.                                 Commas must  separate the items in  a field
  627.                                 location reference.  EX: (c,1,3 = c'ABC').
  628.  
  629.                                 As in:
  630.                                  SEL(c,10,3 != c'EXE' and c,10,3 != c'COM')
  631.                                                   - or -
  632.                                  IR c,1,5,0
  633.                                    (s'RECIN' / i'2' + i'1')
  634.  
  635.                                 Literal fields are comprised of  a type and
  636.                                 a quoted  string of  characters.  See  TYPE
  637.                                 for details.
  638.  
  639.           DUPS           dups   Used  to tell  ParaSort  that there  may be
  640.                                 duplicate records  in the  file.   With the
  641.                                 duplicate resolver options of  FIRST, LAST,
  642.                                 and DONTCARE you  can indicate how ParaSort
  643.                                 should order these duplicates.
  644.  
  645.           FIRST          f      Used  in  conjunction with  the DUPS/NODUPS
  646.                                 commands.  Indicates that when records with
  647.                                 duplicate  keys  are  encountered, ParaSort
  648.                                 should place then  in the original sequence
  649.                                 as  they were  found.  In  the case  of the
  650.                                 NODUPS  command, the  first  record of  the
  651.                                 duplicates will be  retained and the others
  652.  
  653.                                         - 10 -
  654.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  668.  
  669.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  670.                          Version                         Version                         _______
  671.  
  672.  
  673.                                 will be dropped from the output file.
  674.  
  675.           FLOAT          f      Used to  specify  the location  of  a  real
  676.                                 number to be  used a key.   The declaration
  677.                                 of this type  of field in the  "C" language
  678.                                 is FLOAT and is four bytes in length.
  679.  
  680.           GIVING         g      Used  to  specify the  name  of  the output
  681.                          to     file(s).     This   can  include   a  drive
  682.                          >      specifier and path.  If the file exists, it
  683.                                 will be  deleted first.   If  the directory
  684.                                 does not  exist, it  will be  created.   At
  685.                                 least one  output file  must be  specified.
  686.                                 Unless the  input was redirected,  in which
  687.                                 case the output will appear on the console.
  688.  
  689.                                 If  multiple  output  files  are  specified
  690.                                 (using the  GIVING command more  than once)
  691.                                 the SELECT,  OUTRECORD, and  VARIABLEOUTPUT
  692.                                 commands are associated with  the preceding
  693.                                 GIVING command.  Any of these commands that
  694.                                 are used  before specifying  a GIVING  file
  695.                                 will be  treated  as  global  commands  and
  696.                                 affect every output file.  This  allows you
  697.                                 to select certain records to be included in
  698.                                 particular files and to format each of  the
  699.                                 output files differently.
  700.  
  701.                                 The ">" causes the output  to be redirected
  702.                                 to a file.  Strictly  speaking, this is not
  703.                                 a  ParaSort command; it  is a  command line
  704.                                 option.   It is listed here  because Giving
  705.                                 and  ">"  are   mutually  exclusive.    And
  706.                                 because the  output will not appear  on the
  707.                                 console, as stated above, if redirection is
  708.                                 used.
  709.  
  710.           INLIMITS       il     Used  to  limit  the  input  to   ParaSort.
  711.                                 Specifies  the number  of  records to  skip
  712.                                 over and the number of records to  include.
  713.                                 You may  skip 0  or more  records and  take
  714.                                 more than 0 or ALL records.
  715.  
  716.           INRECORD       ir     Used to  reformat the  records as they  are
  717.                                 read  from  the  input  file.     Any  non-
  718.  
  719.                                         - 11 -
  720.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  734.  
  735.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  736.                          Version                         Version                         _______
  737.  
  738.  
  739.                                 formatted  positions  in a  newly formatted
  740.                                 record  are space  filled.   The  receiving
  741.                                 field  position may be  replaced with a "."
  742.                                 (period) if ParaSort  should calculate  the
  743.                                 next available position in the record.
  744.  
  745.                                 If the type  of the receiving field  is "C"
  746.                                 for  character  string,  a  comma  and  the
  747.                                 length of the field must follow the sending
  748.                                 field  description.  and  a   comma  and  a
  749.                                 precision number  must  follow  that.    An
  750.                                 example:
  751.  
  752.                                    INRECORD C,1,7,2  (F,5)
  753.  
  754.                                 meaning;  move  a  floating   point  number
  755.                                 starting in position 5 of the  input record
  756.                                 and  convert  it   to  a  character  string
  757.                                 starting in position 1 for a length of 7 of
  758.                                 which 2 will be decimal characters.
  759.  
  760.                                 The precision specification is required for
  761.                                 character comversions.  Even if it is not a
  762.                                 number that is being inserted as in
  763.  
  764.                                    INRECORD C,1,5,0  (c'HELLO')
  765.  
  766.                                 Always place  a ,0  if the  field does  not
  767.                                 apply.
  768.  
  769.                                 An alternate coding of the INRECORD command
  770.                                 can  be  done  under special  circumstances
  771.                                 only.
  772.  
  773.                                    1. The receiving field type is C or X.
  774.                                    2. The first  field in  the equation  is
  775.                                    type C or X.
  776.                                    3.  You want the  receiving field  to be
  777.                                    the  same  size  as the  result  of  the
  778.                                    equation.
  779.  
  780.                                 The command would look something like:
  781.  
  782.                                    IR C,1,. (c'HELLO')
  783.  
  784.  
  785.                                         - 12 -
  786.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  800.  
  801.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  802.                          Version                         Version                         _______
  803.  
  804.  
  805.                                 The period states  that the  length of  the
  806.                                 field should be calculated from the  length
  807.                                 of  the  result  of  the  equation.     The
  808.                                 precision parameter is not allowed, and not
  809.                                 needed, when the period (.) is used.
  810.  
  811.                                 All  key,  SELECT, and  OUTRECORD positions
  812.                                 must be  calculated according to  the newly
  813.                                 formatted record.
  814.  
  815.           INTEGER        i      Used to specify the  location of an integer
  816.                                 field to be used as a key.  The declaration
  817.                                 of  this in the "C"  language is INT and is
  818.                                 two bytes in length.
  819.  
  820.           LAST           l      Used  in  conjunction with  the DUPS/NODUPS
  821.                                 commands.  Indicates that when records with
  822.                                 duplicate  keys  are  encountered, ParaSort
  823.                                 should place  then in the  opposite of  the
  824.                                 original sequence  as they were found.   In
  825.                                 the  case of  the NODUPS command,  the last
  826.                                 record of the  duplicates will be  retained
  827.                                 and  the others  will be  dropped  from the
  828.                                 output file.
  829.  
  830.           LONG           l      Used  to specify  the  location of  an long
  831.                                 integer field  to be  used as  a key.   The
  832.                                 declaration  of  this  field   in  the  "C"
  833.                                 language is LONG  INT and is four  bytes in
  834.                                 length.
  835.  
  836.           LRECL          r      Used to specify the length  of a record for
  837.                                 fixed length  files.   It is  also used  to
  838.                                 tell   ParaSort   the  maximum   length  of
  839.                                 variable length records.  For variable (VI)
  840.                                 length records you must account  for the CR
  841.                                 LF  at  the  end  of  each  record.    This
  842.                                 increases the records size by  2 bytes.  Do
  843.                                 not  specify this  for  the COPY  operation
  844.                                 unless  you  are  also   specifying  record
  845.                                 modifications.  ParaSort will  operate much
  846.                                 faster if  it can  decide  it's own  record
  847.                                 size.
  848.  
  849.  
  850.  
  851.                                         - 13 -
  852.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  866.  
  867.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  868.                          Version                         Version                         _______
  869.  
  870.  
  871.           MERGE          m      Used  to  merge two  files  together.   The
  872.                                 files must be previously sorted in the same
  873.                                 keys.   You  must also  specify these  same
  874.                                 keys when you  this command.  If  no GIVING
  875.                                 (TO)  option is  specified  then the  first
  876.                                 file in the MERGE  command is replaced with
  877.                                 the merged output.
  878.  
  879.           NODUPS         nd     Used  to tell  ParaSort that  there  may be
  880.                                 duplicate records in the file and  that you
  881.                                 only want to retain one of them.   With the
  882.                                 duplicate resolver options of  FIRST, LAST,
  883.                                 and DONTCARE you can  indicate how ParaSort
  884.                                 should  select  the  proper   duplicate  to
  885.                                 retain.
  886.  
  887.           OUTLIMITS      ol     Used  to  limit  the  output  of  ParaSort.
  888.                                 Specifies  the number  of  records to  skip
  889.                                 over and the number of records to  include.
  890.                                 You may  skip 0  or more  records and  take
  891.                                 more than 0 or ALL records.
  892.  
  893.           OUTRECORD      or     Used to  reformat the  records as they  are
  894.                                 written to the output file(s).  The meaning
  895.                                 of this  command varies  slightly with  the
  896.                                 placement of it with respect to the  GIVING
  897.                                 command.     If  it  precedes   all  GIVING
  898.                                 commands  the  OUTRECORD  command  will  be
  899.                                 treated   as   a   global   output   format
  900.                                 specification;  it  will affect  all output
  901.                                 files.   If  it follows  a GIVING  command,
  902.                                 then it applies only to that output file.
  903.  
  904.                                 Any  non-formatted  positions  in  a  newly
  905.                                 formatted  record are  space  filled.   The
  906.                                 positional references in this command refer
  907.                                 to the  newly formatted input record if the
  908.                                 INRECORD command was issued.  The receiving
  909.                                 field position  may be replaced with  a "."
  910.                                 (period) if ParaSort  should calculate  the
  911.                                 next available position.
  912.  
  913.                                 If the type  of the receiving field  is "C"
  914.                                 for  character  string,  a  comma  and  the
  915.                                 length of the field must follow the sending
  916.  
  917.                                         - 14 -
  918.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  932.  
  933.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  934.                          Version                         Version                         _______
  935.  
  936.  
  937.                                 field  description  and   a  comma  and   a
  938.                                 precision number  must  follow  that.    An
  939.                                 example:
  940.  
  941.                                    OUTRECORD C,1,7,2  (F,5)
  942.  
  943.                                 meaning;  move  a  floating   point  number
  944.                                 starting in position 5 of  the input record
  945.                                 and  convert  it   to  a  character  string
  946.                                 starting in position 1 for a length of 7 of
  947.                                 which 2  will be  decimal characters.   See
  948.                                 INRECORD  for  more  examples  and  further
  949.                                 options.  All INRECORD parameters are valid
  950.                                 OUTRECORD parameters as well.
  951.  
  952.           POSIN                 Used to reference the  actual byte position
  953.                                 of the current record being processed.  The
  954.                                 first record in the file is pos=1.  This is
  955.                                 a long  integer (LONG) field.   This system
  956.                                 variable refers  to  the  position  in  the
  957.                                 input file.
  958.  
  959.           POSOUT                Used to reference the actual byte  position
  960.                                 of the current record being processed.  The
  961.                                 first record in the file is pos=1.  This is
  962.                                 a long  integer (LONG) field.   This system
  963.                                 variable  refers  to  the position  in  the
  964.                                 output file.
  965.  
  966.           QUOTED         q      Used to specify that a key is of the QUOTED
  967.                                 type.  This is very  similar to a character
  968.                                 type of  key in that after  all adjustments
  969.                                 are  made,   the  field  is   sorted  as  a
  970.                                 character field.
  971.  
  972.                                 These adjustments to a quoted  field DO NOT
  973.                                 affect the contents of the record; they are
  974.                                 adjustments made only for sorting purposes.
  975.                                 Each  sort  key  has  all  of  its  commas,
  976.                                 quotation marks, tick marks, and extraneous
  977.                                 white space removed before it is compared.
  978.  
  979.           RECIN                 Used   to   reference  the   actual  record
  980.                                 position  of  the   current  record   being
  981.                                 processed.  The first record in the file is
  982.  
  983.                                         - 15 -
  984.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  998.  
  999.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  1000.                          Version                         Version                         _______
  1001.  
  1002.  
  1003.                                 rec=1.  This is a long integer (LONG) field
  1004.                                 and  if it  is inserted  with  the INRECORD
  1005.                                 command,  can  be  used as  a  part  of the
  1006.                                 record from then on.   This system variable
  1007.                                 refers to the record position in the  input
  1008.                                 file.
  1009.  
  1010.           RECOUT                Used   to   reference  the   actual  record
  1011.                                 position  of  the   current  record   being
  1012.                                 processed.  The first record in the file is
  1013.                                 rec=1.    This  is a  long  integer  (LONG)
  1014.                                 field.  This system variable refers to  the
  1015.                                 record position in the output file.
  1016.  
  1017.           RECORDS        recs   Used to specify  the number  of records  in
  1018.                                 the input  file (or files in the  case of a
  1019.                                 merge  command).    This  command  is   not
  1020.                                 necessary  when  processing   fixed  length
  1021.                                 record files because ParaSort  computes the
  1022.                                 number of records  on the size of  the file
  1023.                                 and the LRECL.  But for variable (VI) sized
  1024.                                 records you should always specify RECS.
  1025.  
  1026.           RND            rnd    Used to reference a system variable that is
  1027.                                 a generated  random number.  This  field is
  1028.                                 an  integer (INTEGER)  field  and if  it is
  1029.                                 inserted with the  INRECORD command, can be
  1030.                                 used as a part of the record from then on.
  1031.  
  1032.           SELECT         sel    Used  to  select  records  from  the  input
  1033.                                 file(s).    The  SELECT   command  operates
  1034.                                 slightly  differently   depending  on   its
  1035.                                 position   with   respect  to   the  GIVING
  1036.                                 command(s).    If  it  precedes all  GIVING
  1037.                                 commands  in  the  specifications, then  it
  1038.                                 will be treated as a global select and will
  1039.                                 be  "AND"ed  with   all  other  groups   of
  1040.                                 selects.   If it  follows a  GIVING command
  1041.                                 then the SELECT command  will only apply to
  1042.                                 that  particular  output   file;  selecting
  1043.                                 records for inclusion.  Records may only be
  1044.                                 selected  (included)  in  one output  file.
  1045.                                 The first time a record  is selected is the
  1046.                                 file that it will be placed in.
  1047.  
  1048.  
  1049.                                         - 16 -
  1050.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  1064.  
  1065.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  1066.                          Version                         Version                         _______
  1067.  
  1068.  
  1069.                                 If multiple selects are  specified they are
  1070.                                 logically combined together with ANDS.  All
  1071.                                 selects must be  true for the record  to be
  1072.                                 selected for processing.   All  comparisons
  1073.                                 are  processed  after   all  input   record
  1074.                                 reformatting is complete.
  1075.  
  1076.           SORT           s      Used  to  initiate a  sort process  and the
  1077.                          <      file name that  will be sorted.   For input
  1078.                                 redirection ("<"), sort is  always assumed.
  1079.                                 Except for  when input redirection  is used
  1080.                                 the input  file will be  replaced with  the
  1081.                                 sorted version unless GIVING is specified.
  1082.  
  1083.           TRANSFER (X)   tfr    Used  to  specify a  number  of bytes  as a
  1084.                          tfrx   header area of  a file that should  be left
  1085.                                 unsorted.   The TFR  command will  transfer
  1086.                                 this header area from the input file to the
  1087.                                 output file before  the sorted records  are
  1088.                                 added.
  1089.  
  1090.                                 The TFRX command will skip  over the header
  1091.                                 area on the input file  and NOT transfer it
  1092.                                 to the output file.
  1093.  
  1094.           type                  The type of a field  describes how the data
  1095.                                 is represented  on disk.  For  instance, is
  1096.                                 it a character  ("C") or hexadecimal  ("X")
  1097.                                 data, is it  an integer  ("I") or a  double
  1098.                                 precision integer ("L"),  a floating  point
  1099.                                 number  ("F")  or  a  double long  floating
  1100.                                 point number  ("D").   Each type  is stored
  1101.                                 differently on disk.
  1102.  
  1103.                                 Type "X" is not allowed for literals.
  1104.  
  1105.                                 TYPE              COMMAND   LENGTH                                TYPE              COMMAND   LENGTH                                ____              _______   ______
  1106.  
  1107.                                 CHARACTER         C         <variable>
  1108.                                 HEXADECIMAL       X         <variable>
  1109.                                 INTEGER           I         2
  1110.                                 LONG INTEGER      L         4
  1111.                                 FLOATING POINT    F         4
  1112.                                 DOUBLE FLOAT      D         8
  1113.  
  1114.  
  1115.                                         - 17 -
  1116.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.                                   Glossary of Terms                                  Glossary of Terms                                  _________________
  1130.  
  1131.           Term           Short               Definition          Term           Short               Definition          ____           _____               __________
  1132.                          Version                         Version                         _______
  1133.  
  1134.  
  1135.           UNSIGNED       u      Used to specify the location of an unsigned
  1136.                                 integer field  to be used  as a  key.   The
  1137.                                 declaration  of  this   field  in  the  "C"
  1138.                                 language is  UNSIGNED INT and is  two bytes
  1139.                                 in length.
  1140.  
  1141.           VARIABLEINPUT  vi     Used  to indicate  that the input  file has
  1142.                                 variable length records in it.   A variable
  1143.                                 record ends in a carriage return (0x0D) and
  1144.                                 a line  feed  (0x0A).   Any  occurrence  of
  1145.                                 these two  characters together  constitutes
  1146.                                 the end of a record.   All bytes at the end
  1147.                                 of the file  (usually a 0x1a) that  are not
  1148.                                 followed  by a  final CR-LF (or  LF-CR) are
  1149.                                 dropped from the output file.   If LRECL is
  1150.                                 not specified, VI is assumed, otherwise the
  1151.                                 input is assumed to be fixed record length.
  1152.  
  1153.           VARIABLEOUTPUT vo     Used  to  indicate  that  the  output  file
  1154.                                 should  be  written  with  variable  length
  1155.                                 records.   A variable length  record always
  1156.                                 will end in a carriage  return (0x0D) and a
  1157.                                 line feed (0x0A).  All trailing spaces in a
  1158.                                 variable length record are trimmed before a
  1159.                                 CRLF is added.
  1160.  
  1161.                                 This command  must follow a  GIVING command
  1162.                                 and  is  associated only  with  that output
  1163.                                 file.  VARIABLEOUTPUT is only assumed  when
  1164.                                 an  input  record  size is  not  specified.
  1165.                                 Otherwise, fixed length records will always
  1166.                                 be written unless this command is issued.
  1167.  
  1168.           WORKDISK       w      Used   to   indicate  a   particular  disk,
  1169.                                 diskette, or ram disk that will be used for
  1170.                                 the sort work files. If  not specified, the
  1171.                                 current drive will be used.
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.                                         - 18 -
  1182.           ParaSort v4.10 (c)'89, C.J.DeGreef  6623 Stowe Ct Lisle, IL 60532
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.