search cancel

"Too many JCL Lines generated" when running task

book

Article ID: 90022

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

When running a task, the following error is received:

U00020386 Runtime error in object 'object.name', line '00028': Too many JCL Lines generated. Max. allowed are '0000001000'.

Environment

Versions:
Automic Workload Automation 10.x
Automic Workload Automation 11.x
Automic Workload Automation 12.x

Cause

By default, only 1000 lines of script or jcl are allowed in a Process in a task.  

Resolution


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).