Do you mean compile as in "create an executable load module" or do you mean "create a list of items"?
I read your request as:
- search for uncataloged GDGs
- create a JCL job stream to execute program IDCAMS and DEFINE base entries for them
- then catalog the GDGs?
Correct? or can you explain the steps in your process in more detail?
Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.