Locating only GDG bases.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Ashish Pawar
Registered Member
Posts: 20
Joined: Mon Aug 18, 2014 10:25 am

Locating only GDG bases.

Post by Ashish Pawar »

Hi,

Is there a way that using ISPF 3.4 we can locate only the GDG bases? I mean when I use wild card it shows the generations also.

The problem I have is - I want to pick only the GDG bases - every base has got may generations for it - so it takes many iterations to reach to next GDGD base, if I could locate only the bases it could have been easier.
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Locating only GDG bases.

Post by Anuj Dhawan »

Hi,

Not an ISPF 3.4 solution, however, see if this works for you:

Code: Select all

//STEP01 EXEC PGM=IKJEFT01                             
//*                                                     
//SYSTSPRT DD DSN=&L,                                   
//            DISP=(,PASS),                             
//            SPACE=(CYL,(??,??),RLSE),                   
//            DCB=(LRECL=80,RECFM=FB,BLKSIZE=0)         
//SYSTSIN  DD *                                         
  LISTCAT LEVEL('gdg.base.criteria') ALL   
//*
//STEP0200 EXEC  PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=&L,DISP=(OLD,DELETE)
//SORTOUT  DD SYSOUT=*
//SYSIN    DD *
  SORT FIELDS=COPY
  INCLUDE COND=(1,8,CH,EQ,C'GDG BASE')
  OUTREC FIELDS=(17,36)
/*
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Ashish Pawar
Registered Member
Posts: 20
Joined: Mon Aug 18, 2014 10:25 am

Re: Locating only GDG bases.

Post by Ashish Pawar »

This is great piece of code, Thanks Anuj!
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Locating only GDG bases.

Post by Anuj Dhawan »

You're welcome Ashish.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”