IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ADRDSSU Utility - Exclude the GDG versions.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Thu Dec 08, 2011 9:07 am
Reply with quote

Hi,

I have the below SYSIN card for the ADDRSSU utility to take back up of all the files with High level Qualifier HLQ1.HLQ2.

Code:
 

  DUMP DATASET(INC(               -                     
  HLQ1.HLQ2.**,                   -                     
  )                               -                     
  EXC(HLQ1.HLQ2.N.ABC,        -                     
  )                               -                     
  SHR                             -                     
  TOL(ENQF) WAIT(3,3)             -                     
  ALLX                            -                     
  SPHERE                          -                     
  OUTDD(TAPE1)                    -                     
  ALLD(*)                         -                     
  CAN                                                   
                                                             


Above card takes back up of all the DASD files into a TAPE.

Now my requirement is, for the GDG versions, I want to take only the latest (0) version back up and need to exclude all the old generations. (If we have limit of 25 versions then take only 25th version back up and exclude all the 24 versions, this will save time when we run ADDRSSU daily).

Can you please advise how do we give an Generic exclude filter for the all the GDG's to exclude older versions?

Regards,
Chandra
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Dec 08, 2011 9:31 am
Reply with quote

Hi,

you can dump the latest generation like this
Code:
DUMP                                                                -
  DATASET(                                                          -
    INCLUDE(                                                        -
      HLQ1.XX.D*.**(0)              /* CURRENT GENERATION ONLY */ -   
    )                                                               -



Gerry
Back to top
View user's profile Send private message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Thu Dec 08, 2011 10:15 am
Reply with quote

Hi

Thanks. This detail pretty useful for me.

But how do we avoid backing up of the all the older versions (-1),(-2) etc?.

In my case HLQ1.HLQ2.** will include all the files including the older GDG versions. I want to avoid taking back up of the older versions.

Please let me know if you have any idea for this.

Thanks
Chandra
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 08, 2011 1:20 pm
Reply with quote

Dead easy, as there is only ever ONE version of a GDS, so you will always be dumping only the latest version.

Now, if you are talking about generations, that would be a different matter.

Terminology is so very important in the IT world, so please get it right.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Dec 08, 2011 1:59 pm
Reply with quote

Just to expand on expat's answer...

The version number is the number that comes after the V in the generation number part of the DSN. This is usually 00 and you would normally only have this version of a file.
Back to top
View user's profile Send private message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Thu Dec 08, 2011 2:39 pm
Reply with quote

I agree Terminology is so very important in the IT world. I Missed the correct terminology. icon_sad.gif

Now coming back to the above question again, How do we avoid backing up of the all the older GDG generations (-1),(-2) etc in ADDRSSU?. Please provide some inputs.

Regards,
Chandra
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Dec 08, 2011 2:59 pm
Reply with quote

So Gerry's solution didnt work?
Back to top
View user's profile Send private message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Thu Dec 08, 2011 3:14 pm
Reply with quote

Hi,

It wil work to only to dump the latest GDG generations.

In my qualifier HLQ1.HLQ2.**, there are sequential files(other than GDG Generations) as well as GDG Generations.

Ex. If I have below files with qualifier HLQ1.HLQ2.**
HLQ1.HLQ2.A
HLQ1.HLQ2.AB
HLQ1.HLQ2.ABC
HLQ1.HLQ2.ABCD <<<<< GDG base
HLQ1.HLQ2.ABCD.G3562V00
HLQ1.HLQ2.ABCD.G3563V00
HLQ1.HLQ2.ABCD.G3564V00
HLQ1.HLQ2.ABCDE <<<<< GDG base
HLQ1.HLQ2.ABCDE.G3562V00
HLQ1.HLQ2.ABCDE.G3563V00

I need back up of only below files need to be backed up.
HLQ1.HLQ2.A
HLQ1.HLQ2.AB
HLQ1.HLQ2.ABC
HLQ1.HLQ2.ABCD.G3564V00
HLQ1.HLQ2.ABCDE.G3563V00


Regards,
Chandra
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Dec 08, 2011 3:20 pm
Reply with quote

I would suggest that if you have datsets such as:

HLQ1.HLQ2.SOME.NAME
HLQ1.HLQ2.SOME.GDG.G0002V00
HLQ1.HLQ2.SOME.GDG.G0001V00

using HLQ1.HLQ2.* will pick up ALL datasets. Just because you are specifying HLQ1.HLQ2.**(0) in another selection criteria woould not magically exclude it from the first criteria. Could be wrong as products evolve over the years.

If my suggestion is right then there are a number of options including:
1 - refine your criteria
2 - use a different naming convention for GDGs
3 - write a program to generate the criteria from a LISTC listing.

While I was writing the above TS made a new post. Another option is to exclude HLQ1.HLQ2.ABCD.* and then INCLUDE HLQ1.HLQ2.ABCD(0)
Back to top
View user's profile Send private message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Fri Dec 09, 2011 1:46 pm
Reply with quote

Thanks Nic.

In the production environment we have the many datasets(more than 50,000) with to same high qualifiers. To combine all of them in a single job was the intention but bit hard now to exclude using the generic filter.
ex.
HLQ1.HLQ2.SOME.NAME
HLQ1.HLQ2.T1111.NAME
HLQ1.HLQ2.R2BAB.ABC.**
HLQ1.HLQ2.YADC.BCD.**
HLQ1.HLQ2.ZDCA.RTB.** and so on......

As you said the option 3 might be better suit here. I will look at some routine to extract the generic filter and post if find any.

Regards,
Chandra
Back to top
View user's profile Send private message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Tue Feb 07, 2012 3:58 pm
Reply with quote

Hi,

For the above query I have decided to go with two jobs.
1. Take back up of the files excluding the GDG Generations
2. Take last GDG generation back up.

I have used below Exclude condition to exclude GDG generations from backing up.

Code:

EXC(HLQ1.**.G*V00)   


In our system we dont have any Generation data set with name HLQ1.**.G*V00.

And as suggested used below SYSIN to Dump the last GDG generation.

Code:

DUMP                                                                -
  DATASET(                                                          -
    INCLUDE(                                                        -
      HLQ1.XX.D*.**(0)              /* CURRENT GENERATION ONLY */ -   
    ) 



Thanks everyone who helped me on this.

Regards,
Chandra
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Mar 20, 2012 2:34 pm
Reply with quote

You can exclude or include all generations of GDG's by coding for example, HLQ1.**(*)


You can also still dump both sets of data in the same job by having two DUMP statements referencing two different output DD's. And they can run at the same time if you specify the PARALLEL parameter, although it will need a large region size for the job.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts REASON 00D70014 in load utility DB2 6
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts How do I SFTP a ADRDSSU file from mai... IBM Tools 4
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
Search our Forums:

Back to Top