Page 1 of 1

Is it possible to delete the last five recods in sequential?

PostPosted: Thu Aug 12, 2010 10:01 am
by ramesh4mainframes
Hi,

In KSDS file if we wanna delete a particular record then we have to move that Record number to key value then we can delete. It's only possible for single record. Is it possible to delete more than one record?

Re: Is it possible to delete the last five recods in sequential?

PostPosted: Thu Aug 12, 2010 10:06 am
by dick scherrer
Hello,

You posted multiple questions in this topic. . .

Yes, the last 5 records can be deleted from a sequential file, but some program code is needed or a builtin feature of some utility (like the sort).

Any number of records can be read then deleted in a ksds. . .

Re: Is it possible to delete the last five recods in sequential?

PostPosted: Thu Oct 21, 2010 11:58 pm
by ritikasingh
Even file aid job can also be used to delete last five record, when you copy the record from one file to another ,give the option to copy from back and skip 5 records.This can be used using temporary option 'T'.