You are here: Job and Form Set Rules Reference > JDT Rules Reference > SortBatches > INI Options

INI Options

You can use these INI options with this rule:

< SortBatches >

BatchFileName =

SortDefault =

< SortBatchesOptions >

BuildSortKey =

SortCommand =

LogSortCommand =

KeepOrgFile =

ZeroBasedOffsets =

< SortBatchSortTypes >

a =

b =

< SortBatchFieldTypes >

Long =

Char_Array =

Defining the sort

Use the options in the SortBatches control group to specify the name of the batch file and the fields you want to sort by.

Option

Description

BatchFileName

Enter the name of the batch file.

SortDefault

Enter the fields you want to sort by plus A for an ascending sort or D for a descending sort. The default is:

ACCOUNT_NUMBER(A);COMPANY(A);FEAT_DESCR (A)

Sorting options

You specify all processing options for the SortBatches rule in the SortBatchOptions control group.

< SortBatchOptions >

BuildSortKey =

LogSortCommand =

KeepOrgFile =

ZeroBasedOffsets =

Option

Description

BuildSortKey

Enter Yes to specify single key processing. The default on Windows is Yes. The default on UNIX is No.

LogSortCommand

Enter Yes to send a copy of the sort command and associated sort options to the trace log file. The default is No.

KeepOrgFile

Enter Yes to write the original batch files in an unmodified format. The sorted batch files are written with an SRT extension. The default is No.

ZeroBasedOffsets

Enter Yes to use zero based offsets. The default is No.

Overriding the sort type

By default, the field-level sort type is written as a for ascending and d for descending. You can override these default values using the SortBatchSortTypes control group:

< SortBatchSortTypes >

a = Replacement_Ascending_Type

d = Replacement_Descending_Type

Overriding the field type

Field types are based on the internal field type defined in the RCB DFD (INT_TYPE). By default their types are set to c for character fields or n for numeric fields, but you can override these values. In the example below, fields defined as LONG have a field type of “num” and fields defined as CHAR_ARRAY have a field type of “char”.

< SortBatchFieldTypes >

Long = num

Char_Array = char