You cannot automate to extend the case transform.
I can think of a script:
- For every distinct country codes from source, loop through each code and
- check if table name ending with this particular country code(Loop variable) exists. If not execute create table command.
- Execute "insert into select" command. Select query will have country code(Loop variable) in its where clause. Target table name of insert command ends with country code(Loop variable).
Same can be done using while loop having a single dataflow inside.
If source and target are two different database types, stage the data into target database before this script.
Obviously its not a good database design !