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 

Jcl for deleting all datasets from particular ids

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sarav80
Beginner


Joined: 20 Sep 2003
Posts: 13
Topics: 11
Location: Bangalore

PostPosted: Sun Nov 02, 2003 12:37 pm    Post subject: Jcl for deleting all datasets from particular ids Reply with quote

Hi
I need JCL for deleting all the datasets from particular id's,can any one give me!
Back to top
View user's profile Send private message Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Sun Nov 02, 2003 1:46 pm    Post subject: Reply with quote

Hi

If you want me, I can write you a batch/online REXX with ISPF services to do that.

O.
________
vaaapp vaporizer


Last edited by ofer71 on Sat Feb 05, 2011 11:07 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Nov 03, 2003 6:07 am    Post subject: Reply with quote

sarav80,


The following technique can be used to delete all the datasets of a particular ID. The default of DISP parameter is (NEW,DELETE,DELETE). so a code a job without the disp parameter by just giving the TID as the DSN name.With the default DISP parm all the datasets will be deleted.

ex:
Code:

//STEP0100  EXEC  PGM=SORT       
//SYSOUT    DD SYSOUT=*             
//SORTIN    DD *
DUMMY RECORD
//SORTOUT   DD DSN=TID OF THE PERSON TO BE DELETED,
//             UNIT=SYSDA,
//             SPACE=(TRK,(1,1),RLSE)             
//SYSIN    DD    *                 
  SORT FIELDS=COPY
//*


Hope this helps...

cheers

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 -> Job Control Language(JCL) 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