IEBGENER INVALID SPACE ALLOCATION ERROR

INVALID SPACE ALLOCATION – This error really confuses the developer as we thinks that it as the space
allocation issue in the JCL but actually it is not. This occurs when the MAXLITS field value specified in the SYSIN DD * has the wrong number. It should have a value greater than or Equal to the total number of characters/literals contained in the subsequent FIELD statements.
Note: DBCS literals on FIELD ARE counted as two characters each.

Example: Literals given in the record field are 4 but in the MAXLITS it is given as 3. In this case it
throws the invalid space allocation error.
SYSIN DD *
GENERATE MAXFLDS=2,MAXLITS=3
RECORD FIELD=(4,’****’,,21)

MAXLITS value should be same or greater than the total of literals used in all RECORD FIELD statements.

//SYSIN DD *
GENERATE MAXFLDS=2,MAXLITS=4
RECORD FIELD=(4,’****’,,21)
RECORD FIELD=(5,’$$$$$’,,1)
/*
//

As the MAXLITS numberis not correct it thorws an error as below

DATA SET UTILITY – GENERATE
GENERATE MAXFLDS=2,MAXLITS=4
RECORD FIELD=(4,’****’,,21),
FIELD=(5,’$$$$$’,,1)
IEB342I INVALID SPACE ALLOCATION
IEB346I MISSING PARENTHESIS OR QUOTE

Solution – Adjust the MAXLITS value to 9 which is the total length of two field statements.

Importance of MAXLITS – It contains a number from 1 to 2730 which represents the total characters used in the record statements.

This needs to be specified when there are literals used in the subsequent record fields and it does not considers the literals used in either IDENT or IDENTG.

This error also comes when creating a PDS from PS. While creating a PDS member from a PS, if ‘MAXNAME= ‘ field is missing or its value is less than the members given.

//SYSIN DD *
GENERATE MAXFLDS=4,MAXLITS=99,MAXNAME=1
MEMBER NAME=OUT2

Above if MAXNAME is not given it throws this error.

For complete IEBGENER details and quick reference refer the Utilities section under Mainframes tab. or @

http://www.techtricky.com/iebgener-tutorial-quick-reference-with-examples/

 

 

Add a Comment

Your email address will not be published. Required fields are marked *