Record counts by Reformat Component

How to calculate the total number of records in the file using REFORMAT instead of ROLLUP?

Questions by Mihira Barik   answers by Mihira Barik

Showing Answers 1 - 2 of 2 Answers

Connect reformat to log port and use this code and in select parameter specify event_type="finish"

type reformat_final_msg = record
decimal("records") read_count;
string("readn") filler_read;
decimal("records") written_count;
string("writtenn") filler_written;
decimal("records") rejected_count;
string("rejected") filler_rejected;
end;
out::reformat(in) =
begin
out.rec_count :1: string_lrtrim(reinterpret_as(reformat_final_msg, in.event_text).read_count);
end;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions