At 15:24 +0200 on 04/02/2011, Monika Amiss wrote about QSAM file size:
Hello group, I'm wondering if there is a way to get the size of a temporary QSAM-Dataset programmatically without opening and seeking to the end of the file. The Program, which needs the site information must C (or Assembler) and runs in z/OS-Batch. I played around with fstat() but did not get my results. The best approach until now seem to me to use CALL ISPLINK and get via LMDLIST the zdlsize the used Tracks of the Dataset. But perhaps somebody has a better idea, perhaps I can use RDJFCB or BPXWDYN to get a bit easier to the values. Any hint appreciated, with best regards Monika
Unless the file is currently closed, there is no way of finding this information from the VTOC. If it is open, there is no available data in the VTOC (unless it has been closed at least once - in which case the information the data is only valid as of the last time it was closed since only a CLOSE (or CLOSE TYPE=T) will update the VTOC with the last track information.
