View previous topic :: View next topic |
Author |
Message |
sarav80 Beginner

Joined: 20 Sep 2003 Posts: 13 Topics: 11 Location: Bangalore
|
Posted: Sun Nov 02, 2003 12:37 pm Post subject: Jcl for deleting all datasets from particular ids |
|
|
Hi
I need JCL for deleting all the datasets from particular id's,can any one give me! |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Sun Nov 02, 2003 1:46 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Nov 03, 2003 6:07 am Post subject: |
|
|
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 |
|
 |
|
|