Page 1 of 1

Soft Delete

Posted: Tue Nov 04, 2008 2:40 pm
by shrey3a
Hi,

I need to set the soft delete flag in the dB. Data is coming as below

The data is coming as

Key Image
123 1234
123 1234

124 145
124 0

154 0
154 0

In above scenario 1 has no change , 2nd is delete as it has before image and after image is set to '0'

The third has no after and before image i.e. by default come as '0'

o/p should be

Key Image Flag
123 1234 N
123 1234 N

124 145 Y
124 0 N

154 0 N
154 0 N

I tried with stage variables but it falls out.

Thanks in help for advance.

Regards,
-M

Posted: Tue Nov 04, 2008 4:03 pm
by ray.wurlod
Why aren't you using one of the change detection stages (Change Capture, Difference or Compare stage)?

Posted: Tue Nov 04, 2008 4:12 pm
by shrey3a
Hi Ray,

I thought of it but change capture stage o/p only one row and I will loose my before image these are the messages from MQ series with before and after images coming in unit of work.

Regards

ray.wurlod wrote:Why aren't you using one of the change detection stages (Change Capture, Difference or Compare stage)?

Posted: Tue Nov 04, 2008 4:35 pm
by ray.wurlod
So use Compare stage, which outputs both inputs.

Posted: Tue Nov 04, 2008 4:51 pm
by shrey3a
Hi Ray,

I tried using it but compare stage only o/p one link.

Regards,
ray.wurlod wrote:So use Compare stage, which outputs both inputs.

Posted: Tue Nov 04, 2008 8:06 pm
by ray.wurlod
There's only one output but it contains three fields: the first input row (as a subrecord), the second input (as a subrecord) and the difference result.