MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
Anand_R Intermediate Joined: 24 Dec 2002 Posts: 189 Topics: 60
Posted: Tue Jun 03, 2003 3:04 pm Post subject: How to empty the set of DSN's in a single step
Hi,
Is there any utility that can empty out the set of DSN's in a single step..Please let me know if I am not clear.
Thanks
Back to top
Premkumar Moderator Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
Posted: Tue Jun 03, 2003 10:39 pm Post subject:
Anand,
SORT will do it. Use appropriate RECFM, LRECL and BLKSIZE for SORTIN DD DUMMY.
Code:
//STP0100 EXEC PGM=SORT
//SORTIN DD DUMMY,RECFM=FB,LRECL=80,BLKSIZE=80
//SORTOF01 DD DSN=FILE1,DISP=OLD
//SORTOF02 DD DSN=FILE2,DISP=OLD
//SORTOF03 DD DSN=FILE3,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=(01,02,03)
//SYSOUT DD SYSOUT=*
Back to top
Anand_R Intermediate Joined: 24 Dec 2002 Posts: 189 Topics: 60
Posted: Wed Jun 04, 2003 12:54 pm Post subject:
Thanks a lot Premkumar,,
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