You can write force_error function in following fashionout:reformat(in)beginif (in.cust_name=="XYZ") force_error("Invalid Customer");out.*::in.*endHope this helps...
Finalize function of SCAN Component is called for each record for a group where as for rollup component it called only once.
satish kumar
Apr 23rd, 2006
Roll up generates data records that summarizes group of data records the rollup can be used to perform the data aggregatuin like sum,avg,max,min etcScan component generates a series of cumulative summary records such as successive yera to date totals for group of data records