Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to delete a no of datasets with same higher qualifier??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
JAYANT KUMAR SAHOO

New User


Joined: 15 Mar 2006
Posts: 14

PostPosted: Sat Aug 26, 2006 3:15 am    Post subject: how to delete a no of datasets with same higher qualifier??
Reply with quote

Hi I am trying to delete some of the(plenty no of) datasets with same higher qualifier .How can I do it efficiently with some rexx code or any other method apart form manually deleting the datastes one by one.

Like suppose there are some 1000 datasets are there under F4567AA.Test.*

Then how can I delete the datasets in most efficient way?
Any help would be really appreciated.

Regards,
Jayant.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Sat Aug 26, 2006 5:51 am    Post subject: Re: how to delete a no of datasets with same higher qualifie
Reply with quote

I'd use ADRDSSU, as shown here in this previous post.

In REXX, I'd use a TSO session and just loop through the list of datasets with a TSO DELETE command.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Aug 27, 2006 12:40 am    Post subject:
Reply with quote

Or you can use the ISPF services LMDLIST & LMERASE.

O.
Back to top
View user's profile Send private message
JAYANT KUMAR SAHOO

New User


Joined: 15 Mar 2006
Posts: 14

PostPosted: Mon Aug 28, 2006 9:19 pm    Post subject: Re: how to delete a no of datasets with same higher qualifie
Reply with quote

I got the result .But if its a set of GDGs then how to delete that.
Coz the IDCAM job cannot delete the base GDG before deleting all the generations.
How to delete all of them in a single shot??

Jay.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 28, 2006 9:40 pm    Post subject:
Reply with quote

Again - Using LMDLIST & LMERASE.

O.
Back to top
View user's profile Send private message
raghunathns

Active User


Joined: 08 Dec 2005
Posts: 127
Location: rochester

PostPosted: Wed Aug 30, 2006 1:18 am    Post subject: gdg base and generations at a time
Reply with quote

DELETE userid.TEST.GDG GENERATIONDATAGROUP FORCE PURGE

deletes all generations and base also.
Back to top
View user's profile Send private message
akshaiya

New User


Joined: 17 Sep 2005
Posts: 49

PostPosted: Wed Aug 30, 2006 11:38 am    Post subject:
Reply with quote

Delete is fine.
But is there a possibility to copy a dataset to 100 different datasets using such syntax...Is there any other simple way rather than coding it 100 times?
Back to top
View user's profile Send private message
Avinash_Gupta

New User


Joined: 11 May 2005
Posts: 26
Location: Hyderabad

PostPosted: Tue Sep 05, 2006 6:14 pm    Post subject: ADDRSSU and IDCAMS are not working in my case
Reply with quote

Hi,
I have the following list of datasets:
PT.TEST.D040411.T015933
PT.TEST.D040412.T042355
PT.TEST.D040413.T020404
PT.TEST.D040414.T020454
PT.TEST.D040415.T021052
There are more than 1000 such datasets whose first two qualifiers are same but the dates and times are varying (as you can see above)
Both the utilites are not working as i can only give DELETE PT.TEST.* but still the last two qualifiers are not addressed as date and time are changing.

Please let me know a efficient way in which i can delete these bulk datasets at one shot.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Tue Sep 05, 2006 8:07 pm    Post subject:
Reply with quote

have you tried
DEL PT.TEST.D040411.*
Back to top
View user's profile Send private message
Avinash_Gupta

New User


Joined: 11 May 2005
Posts: 26
Location: Hyderabad

PostPosted: Wed Sep 06, 2006 9:06 am    Post subject: it doesnt help
Reply with quote

Actually the above will only delete a single dataset.the date D0411 is changing to another date D0412.it will not help me in bulk delete.
Back to top
View user's profile Send private message
JAYANT KUMAR SAHOO

New User


Joined: 15 Mar 2006
Posts: 14

PostPosted: Thu Sep 07, 2006 1:04 am    Post subject: Re: how to delete a no of datasets with same higher qualifie
Reply with quote

Similar requirement.
I have a bunch of datasets with
F1234U.TEST.USEROUT* WHERE * FROM - 1 TO N
How will I rename all the datasets to
F1234.AA.TEST.USEROUT*

Any suggestion how this can be achieved through batch instead of changing them manually for each one in ISPF .

Any help will be appreciated.


Jay.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Thu Sep 07, 2006 1:31 am    Post subject: Re: how to delete a no of datasets with same higher qualifie
Reply with quote

Anyone of the commands TSO RENAME, TSO ALTER, or IDCAMS ALTER can be batched to do whatever you want. Why would you even be considering doing this manually?

For the rest of you, the same applies to the TSO DELETE or IDCAMS DELETE commands. Just batch them up for a given list of dataset names and let 'em rip!
Back to top
View user's profile Send private message
JAYANT KUMAR SAHOO

New User


Joined: 15 Mar 2006
Posts: 14

PostPosted: Thu Sep 07, 2006 2:17 am    Post subject: Re: how to delete a no of datasets with same higher qualifie
Reply with quote

Abinash,

whenever u want to bulk delete u have to mention upto the last but one qualifier and then put the .*(dot star).

Then only u can achieve the goal.for ur requirement U have to bring all ur datastes to a sync so that they will only differ only in the last qulaifier.Then use the usual IDCAMS delete in batch or use a TSo delete in REXX code for the entire list. U will achieve ur goal.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us