Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deleting VSAM Records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Deleting VSAM Records
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

Moderator Team Head


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

PostPosted: Thu Apr 13, 2006 4:52 pm    Post subject: Re: Deleting VSAM Records
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us