I want to "SCAN" these JCL JOBs which include input controls (for a particular program we are reviewing) both as [DD *] instream controls as well as [DD DSN=] references.
I want to logically SCAN the JCL JOBs and the result should include both: any instream controls as well as all resolved datasetname references.
I have tried 2 approaches:
- Just read theJCL and look for instream controls. Yes nowadays they could be in an included PROC but nobody uses this "new" feature.
This misses any datasets with symbolic variables (most!) - Resolve the JCL stream:
- SCAN the JOB
- Trap the output in SDSF
- Analyse the resolved datasetname references