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.
To use additional sort work files, you need to change the Ideal Options Block (@IIDOPTS).
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 @IIDOPTS.
For example, if you want to use 5 sort work files, then specify SORTWP=5 in the IDOPTS member, then in your execution JCL, add DD statements for SORTWK1, SORTWK2 ... up to SORTWK5.