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
 

 

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: 50
Location: London

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: 50
Location: London

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: 50
Location: London

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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 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 To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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