VMS Help  —  MERGE  /STABLE
    Directs records with equal keys to the output file in their input
    file order. The default condition is /NOSTABLE.

    Formats

      /STABLE

      /NOSTABLE

1  –  Full Description

    When the input files contain records with equal keys, those
    records may not maintain the same order that they appeared in
    the input file. Specifying the /STABLE qualifier arranges records
    with equal keys in the order of the input files on output. If you
    use this qualifier when sorting multiple input files, on output,
    records with equal keys in the first file precede those from the
    second file and so on.

    The /STABLE and /NODUPLICATES qualifiers are mutually exclusive.

2  –  Example

  $ SORT/KEY=(POS:1,SIZ:5,DECIMAL)/STABLE PRICESA.DAT,PRICESB.DAT, -
  _$ PRICESC.DAT SUMMARY.LIS

      In this sort operation, records with equal keys from
      PRICESA.DAT will be listed first, followed by those from
      PRICESB.DAT, followed by those from PRICESC.DAT.
Close Help