Description:
Running an IDEAL program in batch that generates a sorted report gets error:
ILU306A INSUFFICIENT WORK SPACE
If more SORTWK files are added, they are not used, it only uses one work file.
Solution:
To use additional sort work files, you need to change the CA Ideal Options Block @IIDOPTS. You will need to make the change in the IDOPTS source module and specify the parameter SORTWP= with the number of sort work files you want to use. Then assemble and link it into phase @IIDOPTS. For example if you want to use 5 sort work files then specify SORTWP=5, then in the JCL you need to add DD statements for SORTWK1, SORTWK2 ... up to SORTWK5.