IBM Z and LinuxONE IBM Z

READ macro throwing out of extent error for blocktokensize large DCBE

  • 1.  READ macro throwing out of extent error for blocktokensize large DCBE

    Posted Thu August 24, 2023 11:53 AM
    Edited by Andres Parada Tue August 29, 2023 09:28 AM

    Hi, 

    I am facing an error which says - 

    OUT OF EXTENT
    Trying to read or write outside the allocated space.

    I am trying to read a PDSE, whose DCBE contains blocktokensize=large. The pdse directory read works fine and is able to read the number of members present. However fails with above error when it goes to read the members. The logic works fine when blocktokensize=large is removed. 

    Have two DCBs and DCBEs defined for PDSE, 1 for dataset and 1 for the directory. only the DCBE for dataset has blocktokensize=large parameter coded.

    However same DCB and DCBE definitions (with blockxtokensize large) is working for reading a PS file. 

    READ  DECB,SF,,(0),'S',MF=E 

    a) Could there be an issue with how I allocated the PDSE at the first place.

    b) Do we need any changes to how Read is coded, above is what I have currently.

    Any help is appreciated. Thanks #IBMZOS #assembly #filesystem