The answer "LISTCAT LEVEL('hlq') GDG NAME" does supply GDG names 

However question was for "empty GDG" which I assume to mean no generations. 
 
Changing to "LISTCAT LEVEL('hlq'') VOLUME' will return the associations or NULL 
if no generations exists.  
  
Such as 

GDG BASE ------ MY.GDG.BASE.A
     ASSOCIATIONS--------(NULL)

GDG BASE ------ MY.GDG.BASE.B 
     ASSOCIATIONS
       NONVSAM--MY.GDG.BASE.B.G0001V00

Maybe other better ways to list,  but I am  IDCAMS fan. 
 
Rob

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of R.S.
Sent: Tuesday, August 27, 2013 8:39 AM
To: [email protected]
Subject: Re: REXX and CLISTs to generate code to delete empty GDG bases

W dniu 2013-08-27 14:14, Rob JACKSON pisze:
>
>
> I have received a request for  expertise coding REXX and CLISTs to generate 
> code to delete empty GDG bases.
>
>
CONTROL ASIS
/* this CLIST deletes some GDG bases */
/* only empty GDG base will be deleted */ DEL HLQ.ANY.NAME DEL 
HLQ.ANO.THER.NAME DEL ...
DEL ...
/* this is the end */


Hint: you can find GDG bases using the following:
LISTCAT LEVEL(HLQ) GDG NAME

--
Radoslaw Skorupka
Lodz, Poland






--
Tre tej wiadomoci moe zawiera informacje prawnie chronione Banku 
przeznaczone wycznie do uytku subowego adresata. Odbiorc moe by jedynie 
jej adresat z wyczeniem dostpu osób trzecich. Jeeli nie jeste adresatem 
niniejszej wiadomoci lub pracownikiem upowanionym do jej przekazania 
adresatowi, informujemy, e jej rozpowszechnianie, kopiowanie, rozprowadzanie 
lub inne dziaanie o podobnym charakterze jest prawnie zabronione i moe by 
karalne. Jeeli otrzymae t wiadomo omykowo, prosimy niezwocznie 
zawiadomi nadawc wysyajc odpowied oraz trwale usun t wiadomo 
wczajc w to wszelkie jej kopie wydrukowane lub zapisane na dysku.

This e-mail may contain legally privileged information of the Bank and is 
intended solely for business use of the addressee. This e-mail may only be 
received by the addressee and may not be disclosed to any third parties. If you 
are not the intended addressee of this e-mail or the employee authorised to 
forward it to the addressee, be advised that any dissemination, copying, 
distribution or any other similar activity is legally prohibited and may be 
punishable. If you received this e-mail by mistake please advise the sender 
immediately by using the reply facility in your e-mail software and delete 
permanently this e-mail including any copies of it either printed or saved to 
hard drive. 

BRE Bank SA, 00-950 Warszawa, ul. Senatorska 18, tel. +48 (22) 829 00 00, fax 
+48 (22) 829 00 33, www.brebank.pl, e-mail: [email protected]
Sd Rejonowy dla m. st. Warszawy XII Wydzia Gospodarczy Krajowego Rejestru 
Sdowego, nr rejestru przedsibiorców KRS 0000025237, NIP: 526-021-50-88. 
Wedug stanu na dzie 01.01.2013 r. kapita zakadowy BRE Banku SA (w caoci 
wpacony) wynosi 168.555.904 zotych.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to