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 

How to empty the set of DSN's in a single step

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


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Tue Jun 03, 2003 3:04 pm    Post subject: How to empty the set of DSN's in a single step Reply with quote

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
View user's profile Send private message
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Tue Jun 03, 2003 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Wed Jun 04, 2003 12:54 pm    Post subject: Reply with quote

Thanks a lot Premkumar,,
Back to top
View user's profile Send private message
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