IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Deleting a Member in a PDS using a Batch Job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
alamelu

New User


Joined: 18 Jul 2005
Posts: 15

PostPosted: Tue Jul 19, 2005 6:05 pm
Reply with quote

Hi ,
Is there any possibilty to delete a menber of PDS using a Batch Job (JCL)?
I tried using Iefbr14 , Its deleting only the Whole PDS.
Can anyone Suggest me how do it ?
Thanks,
Alamelu
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Tue Jul 19, 2005 6:49 pm
Reply with quote

Have you tried ibmmainframes.com/jcls.php
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 19, 2005 7:43 pm
Reply with quote

This job deletes two different members (#1 and #2) using two different methods for the same PDS ('SUPERK.PDS'):
Code:

//*                                                       
//DELETE   EXEC PGM=IKJEFT01                               
//SYSTSPRT DD   SYSOUT=*                                   
//SYSTSIN  DD   DATA                                       
DELETE 'SUPERK.PDS(#1)'                                   
/*                                                         
//*                                                       
//SASSTEP  EXEC SAS                                       
//SAS.SASLOG   DD SYSOUT=*                                 
//SAS.SYSDUMP  DD SYSOUT=*                                 
//SAS.SASLIST  DD SYSOUT=*                                 
//SYSUT1   DD   DISP=SHR,DSN=SUPERK.PDS                   
//SYSIN    DD   DATA                                       
PROC PDS DDNAME=SYSUT1;                                   
  DELETE #2;                                               
/*                                                         
//*                                                       
Back to top
View user's profile Send private message
kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Wed Jul 20, 2005 2:16 pm
Reply with quote

Hi

try this out :-

//jobcard here
//step1 exec pgm=IDCAMS
//pds dd dsn=abc.test.try(mem1), disp=shr
//sysin dd *
DELETE abc.test.try FILE(pds)
/*

here abc.test.try is the pds name and mem1 is themember to be deleted in that pds.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Deleting a Tape file JCL & VSAM 14
No new posts CA7 deleting files in steps after job... CA Products 4
Search our Forums:

Back to Top