Identify obsolete GDG bases

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
BMS
Member
Posts: 4
Joined: Wed Sep 25, 2013 3:27 pm

Identify obsolete GDG bases

Post by BMS » Wed Sep 25, 2013 3:44 pm

i have a requirement to identify Obsolete GDG bases in a particular region. say for eg the GDG's of my region starts with FMFM.*

using SORT,IDCAMS & REXX i got the list of GDG bases(starting with particular HLQ - FMFM.*)which has no generations .

now from that list i need to seperate the GDG bases which are obsolete(not used for more than 2 months).
please help with your thoughts to proceed this case.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed Sep 25, 2013 5:39 pm

Obviously you need to find the jobs that used these and find out when they were last run. Your scheduler should have the info. However, 2 months is a short time span - it does not cover quarterly jobs let alone annual jobs so BEWARE.

And - a further thought: how about bases that are NOT empty but are unused.
Regards
Nic

BMS
Member
Posts: 4
Joined: Wed Sep 25, 2013 3:27 pm

Post by BMS » Fri Sep 27, 2013 9:28 am

Need to check that also. first thought of identifying Obsolete GDG bases with no generations...

in my region i have totally 13000 GDG's and from that the GDG's with no bases list has 8000...so verifying every job is tedious one...also we usally use symbollic parm in jobs...
any idea.. please suggest

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Sep 27, 2013 7:44 pm

I guess you mean you ahve 13000-ish GDG bases of which about 8000 have no entries. You are going to have to take a list of those empty GDGs into a dataset and then get all your jobs/procedures unloaded into another dataset and start, create a macro to find the base within the unloaded data, create a program to ISPF EDIT the datasets issuing the find for each base and note the results. Lots of other stuff in there that you need to think about but you may even be able to do it with DFSORT.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Sep 27, 2013 11:37 pm

One of my sites often has gdg bases with no generations and they are NOT obsolete. . .

There are periodic processes (say weekly) that add a +1. At the end of the month, the existing generations are processed and deleted.

That base should Not go away.
Have a good one

BMS
Member
Posts: 4
Joined: Wed Sep 25, 2013 3:27 pm

Post by BMS » Mon Sep 30, 2013 12:27 pm

sorry .. its 8000 gdg bases with no generations out of total 13000 gdgs

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon Sep 30, 2013 9:29 pm

That still does not give a clue to identifying the ones that are truly obsolete . . .

If you scan all of the production JCL and look for these names, this may help.

What will be the "cost" if gdg base is deleted and then some process tries to create a +1?
Have a good one

BMS
Member
Posts: 4
Joined: Wed Sep 25, 2013 3:27 pm

Post by BMS » Fri Oct 04, 2013 10:52 am

is there any way we can find when(date) was the recent version creation or deletion happened for a particular GDG base

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others