
nothing is confusing on what we told You ...
first step run the listcat creating a sequential dataset
second step run Your frigging COBOL program reading the IDCAMS output and producing whatever output You want
for GDG the catalog date can be safely considered as the creation date
but as I said sort can do it better
http://ibmmainframes.com/about34829.html
That is why I am looking for alternatives.
plain stupid remark
I can do it with JCL, but my requirement should be fulfilled with COBOL.
pretty hard to believe, anyway who set the cobol requirement is an idiot