Is there a recommendation for generating a trailer record with information for a given file?
i.e. File contains Header record, Many Detail records and a Trailer record with a total number of Detail records processed.
thanks
i.e. File contains Header record, Many Detail records and a Trailer record with a total number of Detail records processed.
thanks
-
Hello,
you can use dict_put_str ctl function in finish method of your transformation for storing information about number of processed records, eg.:function finished() {
dict_put_str('recNo',num2str(counter));
}
where counter is number of processed records.
In the next phase you can use dict_get_str function for reading this info, eg. in DataGenerator component:function generate() {
$0.info := 'Summary';
$0.recNo := dict_get_str('recNo');
}
Please sign in to leave a comment.
Comments 1