DFSORT INREC: Inserting sequence numbers DFSORT OUTFIL: Creating multiple identical copies

One or more output datasets and reports can be created from a single pass oversorted, merged, or copied input using OUTFIL control statements.

Different OUTFIL parameters on different OUTFIL statements can be used.

The output records created by the processing for the other statements are the input records for OUTFIL processing.

Combining the various DFSORT statements in different ways gives a lot of flexibility.

OUTFIL statements can be used with different INCLUDE or OMIT and OUTREC, OVERLAY, or IFTHEN parameters for creating different OUTFIL files.

The following tasks can perform with each OUTFIL statement,

  1. Repeating records with the REPEAT parameter.

  2. Creating detailed reports using the BUILD, OUTREC, OVERLAY, IFTHEN, HEADERn, TRAILERn, SECTIONS, LINES, NODETAIL, BLKCCH1, BLKCCH2, BLKCCT1, and REMOVECC parameters.

  3. Selecting a sequential subset of records with the STARTREC and ENDREC parameters.

  4. Limit the number of records selected with the ACCEPT parameter.

  5. Selecting a sample of records with the SAMPLE parameter.

  6. Selecting "discarded" records with the SAVE parameter which saves any records that are not selected as a result of STARTREC, ENDREC, SAMPLE,INCLUDE, OMIT or ACCEPT parameters.

  7. Selecting a subset of records with the INCLUDE and OMIT parameters.

  8. Reformat records with fixed position/length fields or variable position/length fields using the PARSE, BUILD, OUTREC, OVERLAY, or IFTHEN parameters.

  9. Splitting records between output data sets using the SPLIT, SPLITBY, and SPLIT1R parameters.

  10. Converting FB records to VB records with the FTOV parameter, or convert VB records to FB records with the VTOF parameter.

  11. Update count and total values in an existing trailer (last) record with the IFTRAIL parameter.

DFSORT INREC: Inserting sequence numbers DFSORT OUTFIL: Creating multiple identical copies