Delete multiple GDG bases



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Delete multiple GDG bases

Postby gildan2020 » Fri Jun 06, 2008 8:07 pm

Hi,

I am writing a JCL to delete GDG bases.

I know the command is as follows:
Delete DSN.GDG      GDG PURGE FORCE

But that works for only one GDG base entry, how do I delete multiple GDG base entries having the same name, ie DSN.**?

I tried to use a pattern like DSN.** but it didn't work. Pls help.
gildan2020
 
Posts: 5
Joined: Wed Jan 23, 2008 5:23 am
Has thanked: 0 time
Been thanked: 0 time

Re: Delete multiple GDG bases

Postby dick scherrer » Sat Jun 07, 2008 12:58 am

Hello,

Either by hand or by creating a list of datasets using listvtoc and editing it, you can create a delete statement for each gdg base you want to delete.

I do not believe idcams supports a wildcard delete like you want.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Delete multiple GDG bases

Postby er.manishawasthi » Tue Jul 22, 2008 10:38 pm

try this
//job statement
//step01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
//DELETE GDGNAME FORCE
/*
//
GDG IS DELETED . THE FORCE COMMAND WILL PHYSICALLY DELETE ALL THE PARAMETERS RELATED TO THAT GDG............
er.manishawasthi
 
Posts: 30
Joined: Sun Jun 29, 2008 7:36 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post