Hello and welcome to the forum,
The module is supposed to run through all the tasks running in the cics, and finding their names, resources ect.
Where did this requirement originate?
Is there any way to do such a thing?
This kind of code can
be written but only by people with a very deep understanding of cics, system control blocks, and assembler.
There are already built-in cics transactions to look at the cics environment - ask your cics system support which you might be permitted to use (many are restricted).
If you explain what is needed (not how you'd like to get it), someone may have a suggestion.