deleting a particular record in rexx



IBM's Command List programming language & Restructured Extended Executor

deleting a particular record in rexx

Postby vsk_in4u » Wed Nov 21, 2007 5:24 pm

how to delete a particular record in dataset without copying it to another dataset by eliminating that single record...
vsk_in4u
 
Posts: 1
Joined: Thu Aug 30, 2007 7:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: deleting a particular record in rexx

 

Re: deleting a particular record in rexx

Postby MrSpock » Wed Nov 21, 2007 9:16 pm

You can't do that in QSAM processing. The entire dataset has to be read and then re-written with the deleted record omitted. It's not a good idea to read and write to the same dataset.

Just use an editor and delete the required record instead.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post