SORT

Syntax:

SORT DISKFACTOR n

SORT MEMORY nnnnnn

SORT DISKFACTOR n MEMORY nnnnnn

Use the following table as a guide when you want to use the SORT parameter.

Option

Description

SORT DISKFACTOR n

where DISKFACTOR n is used to calculate the amount of temporary disk space for SORTing, as follows:

sortdiskspace:= diskfactor * filesize

In most cases, a DISKFACTOR of 2 is sufficient.

Example: SORT DISKFACTOR 2

SORT MEMORY nnnnnn

where MEMORY nnnnnn is the amount of main memory in A Series words that SORT can use.

Example: SORT MEMORY 85000

You can put both DISKFACTOR and MEMORY on the same line, as in the following example:

SORT DISKFACTOR 3 MEMORY 200000