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

JCl for deleting Records in a dataset


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Tue Jan 30, 2007 11:00 am
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
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

Moderator Emeritus


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

PostPosted: Wed Jan 31, 2007 12:02 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top