I have around 30 shapefiles, 1 million (ish) features in each, that have a CATEGORY attribute and a CODE attribute, amongst many other things. The thing that makes them unique is that their file name is the year of generation (1994, 2006 etc) and there is also an attribute called year with the corresponding year in it for every feature, for clarity.
I simply want to rename CATEGORY to CATEGORYXX, where XX represents the last two digits of the year being processed - e.g. CATEGORY94 or CATEGORY06, and do the same for CODE - eg CODE94 etc.
That is simple and fine with AttributeRenamer or Creator or SubstringExtractor but i cannot go through all 30 files changing the attribute on the writer to be CODE91 then CODE 92 etc etc, especially when they may need processing more than once in the future.
So I set up a dynamic workbench but obviously if you predefine an attribute on the writer, it will not be dynamic anymore. I am very much struggling to use the SchemaMapper to achieve this simple task. Example 7 here (http://fmepedia.safe.com/articles/Samples_and_Demos/Mapping-Schemas-using-SchemaMapper) is probably in the right ball park but it is claiming that my schema.csv must expose fme_feature_type for all records? all 30 million?!
I think i might not be able to see the wood for the trees here, any help?