MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
sivafdms Intermediate Joined: 29 May 2007 Posts: 165 Topics: 77
Posted: Tue Nov 18, 2008 1:28 pm Post subject: Delete all files
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
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Nov 18, 2008 2:01 pm Post subject:
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
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