If no value is entered for the Sort Disk Size property, the default is calculated in the ClearPath MCP environment.
Default sizes are applied as follows:
The following formula is used to calculate the number of disk modules needed for each extract file used in the report. The largest value is used in the report.
Modules = (ExpectedNumber * MaxRecordSizeInWords * 2.25/1000)/1800
The number of modules calculated is rounded up to the nearest module.
MaxRecordSizeInWords is the size of the largest frame of the extract file expressed in words.
If the number of disk modules calculated is less than 25, the value 25 is used (approximately 45 million words of disk).
Example 1
A Report has several Frames to be extracted and sorted in Extract file A. The largest Frame record size is 240, and Extract file A has an expected number of 1,000,000. If you do not enter a value for the Sort Disk Size property, the default is 50 modules, calculated as:
(1,000,000 / 1000) * 240 * 2.25) / 10800 = 50
Example 2
A Report has one Frame to be extracted and sorted in Extract file B. The Frame record size is 80, and Extract file A has an expected value of 10,000. If you do not enter a value in the Sort Disk Size property, the default is 1 module, which is the rounded-up result from the calculation:
(10,000 / 1000) * 80 * 2.25) / 10800 = 0.17
Note: If any other Extract files that were to be sorted did not have an expected number, the default becomes 20 modules.