Page 1 of 1

How to delete PDS member alone thru a jcl

Posted: Fri Jun 16, 2006 4:01 pm
by Sweetu
Can any1 help me with this How to delete PDS particular member alone thru a jcl.

Posted: Sat Jun 17, 2006 10:56 am
by arrbee
Sorry. It is not possible.

Posted: Wed Jun 21, 2006 3:06 pm
by Diya
Ya its possible thru IDCAMS.
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT = *
//SYSIN DD *
DELETE Data-set-name(membername)
/*

this will delete the that particular member alone.
For this u can use IEHPROGM

hope this helps u

luv
diya

Posted: Tue Jun 27, 2006 11:46 am
by arrbee
Oops......sorry......I think it is not possible to delete all the members in a PDS using a JCL utility (REXX is an exception).

Please correct me if I am wrong.

Posted: Fri Jan 29, 2010 9:20 pm
by sachininx
Diya is wright... it is possible i checked
please get the complete jcl
//job name JOB (12345),'JCL',CLASS=3,
// MSGCLASS=X,NOTIFY=user
// MSGLEVEL=(1,1),
//STEPn01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE DATA.SET.ONE(member)
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CEEDUMP DD SYSOUT=A
//SYSUDUMP DD SYSOUT=A

Posted: Tue Feb 02, 2010 6:02 am
by skolusu
arrbee wrote:Oops......sorry......I think it is not possible to delete all the members in a PDS using a JCL utility (REXX is an exception).

Please correct me if I am wrong.
Arrbee,

Check out the smart DFSORT trick "Delete all members of a PDS"

http://www.ibm.com/support/docview.wss? ... g3T7000094