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
 
JCl for deleting Records in a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sreekusr
Warnings : 1

New User


Joined: 28 Aug 2006
Posts: 54
Location: Madrid

PostPosted: Tue Jan 30, 2007 10:37 am    Post subject: JCl for deleting Records in a dataset
Reply with quote

Hi all,

Can any one provide me JCL that deletes records from Dataset.

Thanks,
Sree
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1190
Location: Bangalore,India

PostPosted: Tue Jan 30, 2007 11:00 am    Post subject:
Reply with quote

Hi Sree,

You can use sort for this


Code:
//STEP010 EXEC PGM=SORT                             
//SORTIN  DD  DSN=TBH2.KMPF52T1.AISR2.DATA,DISP=SHR
//SORTOUT DD  DSN=TBH2.KMPF52T1.AISR2.DATA,DISP=SHR
//SYSOUT  DD SYSOUT=*                               
//SYSIN   DD *                                     
  OPTION COPY                                       
  OMIT COND=ALL                                     
/*       


Hope it will helpful
Back to top
View user's profile Send private message
sreekusr
Warnings : 1

New User


Joined: 28 Aug 2006
Posts: 54
Location: Madrid

PostPosted: Tue Jan 30, 2007 11:36 am    Post subject: Re: JCl for deleting Records in a dataset
Reply with quote

Hi,

Thanks for the response.

It worked for the Sequential Data set but for VSAM it is not working.

Thanks,
Sree
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 31, 2007 12:02 am    Post subject:
Reply with quote

Hello,

Try IDCAMS delete/define.
Back to top
View user's profile Send private message
sreekusr
Warnings : 1

New User


Joined: 28 Aug 2006
Posts: 54
Location: Madrid

PostPosted: Wed Jan 31, 2007 9:00 am    Post subject: Re: JCl for deleting Records in a dataset
Reply with quote

Hi all,

Thanks a lot for the response.
It really helped.

Regards,
Sree
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 Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am

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