Each Process page can contain up to 32767 lines. However, script generation is canceled if the script generates more than 1000 JCL lines. If your script generates more JCL lines, you can use the MAX_JCL_LINES parameter in a :PUT_ATT script statement to change the limit.
This limit can be increased using the :PUT_ATT script function, and setting MAX_JCL_LINES. For example, the following could be used to increase the allowed JCL to 5000 lines: :PUT_ATT MAX_JCL_LINES = 5000
It's important that those lines are either in the Pre-Process of an executable task (and in the beginning of a Script object).