Opps, just saw it was an IF. How many nested layers and how many characters?
Main Topics
Browse All TopicsI get a "JCL STATEMENT MAXIMUM LENGTH EXCEEDED" error on an IF statement in a JCL program. The length of the statement is 632 words or 126 lines. Does anyone know what the limit is?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I looked up the message and IBM says to check to make sure there are no missing continuation marks or close parenthesis.
That is a LONG If statement. I would double check what the tool is attempting to do. It seems that 7,000 bytes of "If" would be a bit too much. I could not image the number of steps that you would need to be executed or the number of different condition codes combinations that you would need in order to get an If construct that big.
Unless something has changed all jobs are limited to 254 steps, with our without If statements. Has been that way for as long as I can remember.
Umm, how do you know the syntax is good if MVS/JES will not process it? Until MVS/JES can process it, you can only assume that it is good.
I does not seem that IBM documents the maximum length for JCL statements. The only length restrictions I can find (or that I ever knew about) were with individual parameters.
My suggestion would be to open a ticket with IBM and ask.
Business Accounts
Answer for Membership
by: giltjrPosted on 2008-02-06 at 19:41:51ID: 20838078
Which statment: JOB, EXEC, DD? That is a LONG, LONG, JCL statement. Typically JCL states limitations in characters, how many characters?