I am mentioning two steps in a JCL that I am creating at the moment. Step 1 produces a PS file. Step 2 copies the PS file to a GDG. Both the files have the same attributes. Hence, I am referring back the parameters using REFDD and DCB. The dataset in step 2 is created correctly using the parameters from Step 1. However, the unused space is not released, though the SPACE parameter has a RLSE in it. The SPACE parameter in step 1 has a SPACE=(nnn,(prim,sec),RLSE). Please advise if it is the way that the system would work that it does not release the unused space if referred back using REFDD? I tried with LIKE, still did not release the unused space.
To sum up, the unused space gets released only on the dataset that has been coded with the SPACE parameter(of course with RLSE). Please advise if I am missing something.