[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

"JCL STATEMENT MAXIMUM LENGTH EXCEEDED" error in a JCL program.

Posted on 2008-02-06
8
Medium Priority
?
3,165 Views
Last Modified: 2008-07-03
I 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?
0
Comment
Question by:AFreeman123
  • 5
  • 3
8 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 1500 total points
ID: 20838078
Which statment: JOB, EXEC, DD?  That is a LONG, LONG, JCL statement.  Typically JCL states limitations in characters, how many characters?
0
 
LVL 57

Expert Comment

by:giltjr
ID: 20838093
Opps, just saw it was an IF.  How many nested layers and how many characters?
0
 
LVL 57

Expert Comment

by:giltjr
ID: 20838117
So far the only thing I can find is that an IF construct can have no more that 15 levels.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:AFreeman123
ID: 20850850
It is a one level if statement created by an automating validation step checker.  Copying this line into word I get 7171 char.    Exact error line is IEFC012I JCL STATEMENT MAXIMUM LENGTH EXCEEDED.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 20851131
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.
0
 

Author Comment

by:AFreeman123
ID: 20851642
Syntax is good.  I did find that an IF statement run before an EXEC step is limited to 254 steps for the job.  This job has 252 steps.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 20851770
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.
0
 

Author Comment

by:AFreeman123
ID: 21110569
And the answer is statements are contained in an 8192 byte buffer.  The step in question  of 7171 char + spaces = 8932 bytes.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article sheds light on easy-to-use steps to recover non-responding hard drives without data loss. Count on these approaches to fix undetectable, not responding, or non-working hard drives.
The onset of year 2018 has been a usual business for IT teams still struggling to find their way out in terms of strengthening their cloud security.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question