MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete all files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Tue Nov 18, 2008 1:28 pm    Post subject: Delete all files Reply with quote

Hi All,

I have a file in which i get different data set names and i want to delete all the data sets in the files.Daily we get different data set names in these file1.

data in the file1
Code:
UUS0002.PCCOM.COMAT.US0002.DDF28.D080401
UUS0002.PCCOM.COMAT.US0002.DDF28.D080104
UUS0002.PCCOM.COMAT.US0002.DDF28.D080103
UUS0002.PCCOM.COMAT.US0002.DDF28.D080102
UUS0002.PCCOM.COMAT.US0002.DDF28.D080101



Thanks,
Siva
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Nov 18, 2008 2:01 pm    Post subject: Reply with quote

sivafdms,

Please search before posting. Check these links


http://www.mvsforums.com/helpboards/viewtopic.php?t=3955&highlight=adrdssu+delete

http://www.mvsforums.com/helpboards/viewtopic.php?t=2758&highlight=adrdssu+delete

Alternatively you can generate the delete cards with the following job.

Code:

//STEP0100 EXEC PGM=ICEMAN                                 
//SYSOUT   DD SYSOUT=*                                     
//SORTIN   DD *                                           
UUS0002.PCCOM.COMAT.US0002.DDF28.D080401
UUS0002.PCCOM.COMAT.US0002.DDF28.D080104
UUS0002.PCCOM.COMAT.US0002.DDF28.D080103
UUS0002.PCCOM.COMAT.US0002.DDF28.D080102
UUS0002.PCCOM.COMAT.US0002.DDF28.D080101
//SORTOUT  DD DSN=&&T1,DISP=(,PASS),SPACE=(CYL,(1,1),RLSE)
//SYSIN    DD *                                           
  SORT FIELDS=COPY                                         
  OUTREC FIELDS=(C' DELETE ',1,44,80:X)                   
/*
//STEP0200 EXEC PGM=IDCAMS                                 
//SYSPRINT DD SYSOUT=*                                     
//SYSIN    DD DSN=&&T1,DISP=SHR                           
/*

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group