How to do a conditional delete on sequential file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
poornima.chandramouli
Participant
Posts: 42
Joined: Wed Dec 26, 2007 1:58 am
Location: India

How to do a conditional delete on sequential file

Post by poornima.chandramouli »

I'm doing a CDC of a sequentila file with a dataset & capturing the records which is preset in the sequental file & not present in the dataset.
I've to delete these particular records in the sequential file,how to achieve this.

Thanks in Advance.
Regards
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You cannot delete single rows from a sequential file. You will need to copy the original file to another and skip the records that you don't want.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

set the Sequential file as after dataset and dataset as before dataset link for Change Capture stage, and drop records for delete, update and insert, the output from this is what you need.
Post Reply