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: 1187
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 Where to get sample for processing RM... vice_versa PL/I & Assembler 1 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm

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