Error 1532 using workfile

I get the error 1532 while using work file in my natural program. The work file has sufficient record length and I’m also using WRITE VARIABLE.

May be because the record length is more and the number of records are more it is unable to flush the buffer. But I’ve done with bigger data - not sure how to overcome this error.

On the mainframe you are limited to a fixed record size of 32767 and a variable length of 32763.

. Truncate one or more of your longer fields.
. Reduce the number of occurrences of array elements.
. Write multiple record types, each with a subset of fields.
. Run the program on Linux/Unix/Windows.