Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Deleting a Member in a PDS using a Batch Job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deleting a Member in a PDS using a Batch Job
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    Post subject:
Reply with quote

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

Moderator Team Head


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

PostPosted: Tue Jul 19, 2005 7:43 pm    Post subject: Re: Deleting a Member in a PDS using a Batch Job
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    Post subject: Re: Deleting a Member in a PDS using a Batch Job
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us