Design a mapping to load the first 3 rows from a flat file into a target

You have to assign row numbers to each record.Generate the row numbers either using the expression transformationas mentioned above or use sequence generator transformation.Then pass the output to filter transformation and specify the filter conditions as O_count<=3.