I have a job with an INCLUDE member which can change regularly. The include member contains a large number of DDnames/datasets and I want to be able to read all the files in this member without knowing what the ddnames are beforehand. Is there anyway I can see using assembler what ddnames are included in the JCL. I know that all the ddnames start with BATR so can easily distinguish them from any other ddname in the job (steplib etc). I can't read TIOT since that appears to only hold details of DDnames that have been accessed already...RDJFCB was suggested to me, but of course you need the DDNAME in advance!
I'm sure this can be done, but I've been searching all over to try and find a way so any help would be appreciated.
Many Thanks In advance
Andy