Primary Space Exceeds 65535 trks for AVGREC allocation

Document ID : KB000040640
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How to avoid Primary Space Exceeding 65535 trks for an AVGREC allocation ?

 

Answer:

Consider Space Type Conversion from AVR to TRK in the ALLOC environment of the ASR and limit the allocation: 

IF &SPACTYPE = 'AVR' THEN DO 

   SET &SPACTYPE = 'BLK' /* Conversion from AVR to BLK */ 

   SET &SPACTYPE = 'TRK' /* Conversion from BLK to AVR */ 

    IF &PRI > 65535 THEN DO 

      SET &PRI = 65535 

   END 

 END