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
 

 

Line command to deletes datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
avinashgup

New User


Joined: 03 Aug 2007
Posts: 19
Location: Naperville

PostPosted: Wed May 07, 2008 6:51 pm    Post subject: Line command to deletes datasets
Reply with quote

Hi,

I am looking for a line command that can be used to mass delete datasets from option 3.4 in ISPF.

For instance there are 300 datasets starting with the qualifier TEST10.*.*
And i need to delete all of them using a line command.

Please let me know if there is any such command.

Thanks.

Avinash
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Wed May 07, 2008 7:20 pm    Post subject:
Reply with quote

TSO DELETE 'TEST10.*.*'
Back to top
View user's profile Send private message
avinashgup

New User


Joined: 03 Aug 2007
Posts: 19
Location: Naperville

PostPosted: Wed May 07, 2008 7:46 pm    Post subject:
Reply with quote

This is throwing an error saying that "REENTER THIS OPERAND". I am not sure if we can use the wild card qualifier with the delete command.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Wed May 07, 2008 8:06 pm    Post subject:
Reply with quote

maybe not hlq.*.* - I can not test it here because at my site, the HLQ is the same for every ds for about 100 of us.
but HLQ.MLQ.* works.

either that or you did not type properly.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed May 07, 2008 8:38 pm    Post subject: Reply to: Line command to deletes datasets
Reply with quote

It's documented that DELETE won't work against a single HLQ.

Seems like there's a few options:

1. Write a small CLIST or REXX exec to use ISPF Dialog Services to replicate the same process.

2. Print the dataset list to a file, edit the file and add a DELETE command in front of each dataset name, and then run that through IDCAMS.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm


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