2022.2

Table Of Contents
TheSorting Optionspageisusedtosorttherecordsintheoutput.Sortingisdonefromthetoptothe
bottom,oneaftertheother.
Sorting Settings
l
Use standard sort:Sortusingthefieldsbelow:
l
Field Name:Usethedrop-downtoselectwhichfieldtosorton.
l
Order:Usethedrop-downtochooseAscendingorDescending.
l
Add:Clicktoaddanewrowtothesortlist.Thelistthatappearscontainsallthefieldsin
theDataModel,aswellasaspecial<DocumentLength>optionwhichisusedtosortby
thenumberofpagesineachdocument.
l
Delete:Clicktodeletethecurrentlyselectedrowinthelist.
l
/ Move up / down:Clicktomovethecurrentlyselectedrowupordownwithinthelist.
l
Use external sort:Sorttherecordsusingsomeexternalsortingsoftware.ACSVfileisexported,
thensortedbytheexternalapplicationandtheresultantsortedCSVfileisreturnedandinteg-
rated,withalltherecordsnowbeingsortedaccordingtotheneworderwithintheCSVfile.
Note: External Sort commands must return a non-zero error code if an error
occurs.
Anexternalsortcommandcouldeasilyfailpartwaythroughprocessingandgenerateonly
apartialoutputfile.Withoutreceivingareturncodefromtheexternalsortprocess,Plan-
etPressConnectcannotknowifthesorthassuccessfullycompletedornot.Thusthesort
programmustgenerateareturncode,withacodeofzero('0')indicatingsuccess,andall
non-zeroresultsindicatingfailure.
l
External Sort Settingsgroup:
ThissectionofthedialogisonlyactivatediftheUse external sortoptionhasbeenselected.
l
Command:EntereitherthefullpathoftheexecutablefilethatwillsorttheCSVfile,ora
validWindowscommandlineinstructiontosorttherecords.
Placeholderscanbeusedwithinthiscommand,andareavailableviathe Insert
input/output file placeholderoptions(expressedaseither${input}or${output})or
viaJobCreationruntimeParameters(expressedas${params.xxxx},wherethexxxxis
thenameoftheruntimeparameter).
TheWindowscommandlineinstructionshoulddosomethinglikethefollowing:
Page 1078