Problem:
What's the maximum size of Working Storage?
Resolution:
There are several limits that apply to Working Storage:
The maximum length of an elementary data item is 65280 characters.
The maximum length of an element of a table is 65280 characters (that is, data items subordinate to an OCCURS clause cannot exceed 65280 characters in length).
The maximum number of occurrences of a table element is 65535. That is, in an OCCURS clause, the value of integer-2 must be less than or equal to 65535.
However, the total size of all data defined in WS can be as big as memory allows.