How to delete PDS member alone thru a jcl

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Sweetu

How to delete PDS member alone thru a jcl

Post by Sweetu » Fri Jun 16, 2006 4:01 pm

Can any1 help me with this How to delete PDS particular member alone thru a jcl.

User avatar
arrbee
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Sat Jun 17, 2006 10:56 am

Sorry. It is not possible.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

Diya

Post by Diya » Wed Jun 21, 2006 3:06 pm

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

User avatar
arrbee
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Tue Jun 27, 2006 11:46 am

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.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

sachininx
Member
Posts: 8
Joined: Thu Jan 28, 2010 4:55 pm
Location: CHENNAI

Post by sachininx » Fri Jan 29, 2010 9:20 pm

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
Sachin

skolusu
Member
Posts: 43
Joined: Sat Jul 26, 2008 12:38 am

Post by skolusu » Tue Feb 02, 2010 6:02 am

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
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others