Find the number of GDG generations

General discussion on the JZOS batch launcher and toolkit
Post Reply
ek1975
Posts: 23
Joined: Tue Sep 30, 2008 10:04 pm

Find the number of GDG generations

Post by ek1975 »

Hello list, We have certain number of GDG generations getting created each month. And when the user makes a request, we have to search for certain words in these files. Right now the program is search for these words one file after another sequentially and it takes more than 36 hours to complete.

I was thinking about finding the number of GDG generations and spawning that many JCL jobs from JZOS to do some parallel searching and cut down the execution time.

Is there any way JZOS can find the number of generations in a GDG file?
Thanks
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You can run IDCAMS from within Java using the com.ibm.jzos.AccessMethodServices class.
Post Reply