I currently have four identical methods, the only difference is the input and output datasets.
Basically the script looks like this:
Reader of dataset 1-> processing method X -> writer to dataset 1
Reader of dataset 2-> processing method X -> writer to dataset 2
Reader of dataset 3-> processing method X -> writer to dataset 3
Reader of dataset 4-> processing method X -> writer to dataset 4
As you can see the processing method X does not change because all of the input datasets/output are similar, and is simply repeated, copy and pasted.
Is there a better way to do this that isn't as cluttered? Is it possible to loop through readers /writers to avoid having to copy and paste the method over and over?
Thanks.