Use presort function in EngageOne Enrichment

Product Feature: Presort
The presort process is set up in your control file under the Presorted section in the Rule file. You would define the fields like %%DOCINDEX in the <SOFTPART> tag where the Enrichment to find and output the document after presorting or system sorting. And <INDEXCOL> is where you can identifies the position in the primary output file to which the Presort software has copied the %%DOCINDEX value. Your third party should be configurable and pass though some constant values to either %%DOCINDEX you will use or any user defined variables.

Here are the information on %%DOCINDEX, <SORTPART> and <INDEXCOL>

%%DOCINDEX
An eight-character document index used by Enrichment to find and output the document after presorting or system sorting. %%DOCINDEX requires a Presort tag group.
Note: You must set one of the <SORTPART> tags to %%DOCINDEX for Presort or output system sort to work.
Valid in Control File Tags


<SORTPART>
Identifies the variables to use to create the Presort Index identified by the Presort group <FILE> tag. You must set a <SORTPART> tag to %%DOCINDEX or Presort processing is not possible.
Enrichment creates the Presort Index record from left to right in the order in which the corresponding <SORTPART> tags appear in the Presort group.  In addition to at least one <SORTPART> tag that specifies information to include in the presort index, Enrichment requires a <SORTPART> tag set to %%DOCINDEX or presort processing is not possible.


Syntax
<SORTPART> constant or %%varname length [justify pad]

Parameter: %%varname A

Description: A variable name to add to the Presort Index.
Default: None
Length: Specifies the length in characters of the variable value identified by %%varname. If the actual length of the variable value is less than the length you specify, Enrichment uses the justify and pad values to correctly position and lengthen the variable value. If the actual length of the variable value is greater than the length you specify, Enrichment uses the justify value to truncate the variable value.


<INDEXCOL>
Identifies the position in the primary output file to which the Presort software has copied the %%DOCINDEX value. The <INDEXCOL> tag also identifies the length of the %%DOCINDEX value. The presort software copies the %%DOCINDEX from the presort index file (the original position determined by <SORTPART> tags) to the primary output file defined by <OUTFILE1>. The updated index can include any information, but it must include the original index data from the file identified by the Presort group <FILE> tag.


Syntax
<INDEXCOL> column length

Parameter: column A

Description: whole number that identifies the %%DOCINDEX value's column position in the primary output file.
Default value:16
Length: The length in bytes of the %%DOCINDEX value. 8

 
UPDATED:  May 26, 2020