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

Deleting VSAM Records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madhur_laddha

New User


Joined: 12 Apr 2006
Posts: 1

PostPosted: Thu Apr 13, 2006 5:07 am
Reply with quote

Hi, I need to delete all records of 22 KSDS VSAM Files. I have googled and looked all here but didnt find anywhere .... any pointers ?? a sample JCL will help me a lot. You can mail me @ <<<Mail-ID Removed>>> Read FORUM RULES
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Apr 13, 2006 4:52 pm
Reply with quote

I find that this method works nicely:

Code:

//STEP0001 EXEC PGM=ICETOOL                               
//VSAMIN   DD   DISP=SHR,DSN=VSAM.KSDS             
//VSAMOUT  DD   DISP=SHR,DSN=VSAM.KSDS             
//T1       DD   DSN=&&T1,DISP=(,PASS),UNIT=SYSDA,         
//         SPACE=(CYL,(5,1),RLSE)                         
//DFSMSG   DD   SYSOUT=*                                   
//TOOLMSG  DD   SYSOUT=*                                   
//TOOLIN   DD   *                                         
  COPY FROM(VSAMIN) USING(CTL1)                           
  COPY FROM(T1) TO(VSAMOUT)                               
/*                                                         
//CTL1CNTL DD   *                                         
  OUTFIL FNAMES=T1,OMIT=ALL                               
/*                                                         
//*                                                       
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top