Find the size of a PS file (Bytes of data it can hold) without reading
Posted: Thu Jul 06, 2023 6:23 pm
Hi Everyone
I am looking to find the size of a PS file with variable records that are assigned by the user .
The user will create the PS file with certain cylinders and block size. We need to write variable records to that PS file. We want to ensure that we don't blow up the file. So we want to calculate before hand, how much data (bytes of data) it can hold and put a check.
So from the COBOL program, is there a way to find the configuration of the file and then calculate the size or directly find the size of the file ?
Please give some thoughts.
Thank you !
I am looking to find the size of a PS file with variable records that are assigned by the user .
The user will create the PS file with certain cylinders and block size. We need to write variable records to that PS file. We want to ensure that we don't blow up the file. So we want to calculate before hand, how much data (bytes of data) it can hold and put a check.
So from the COBOL program, is there a way to find the configuration of the file and then calculate the size or directly find the size of the file ?
Please give some thoughts.
Thank you !