I need to daily update this table(as below)

I will update new Product ID & recipe_A & recipe_B everyday.
Then I need to sort recipe_A & recipe_B to other two columns (sort_A & sort_B) .
so I copy recipe_A & recipe_B to sort_A & sort_B , and run this script (as below)
In this way , I can recode sort_A & sort_B.
Current Data Table() << Begin Data Update;
For Each Row( :sort_A = Match( :sort_A, "ZXC", "worse", "QWE", "better", "ASD", "good", :sort_A ) );
Current Data Table() << End Data Update;
Current Data Table() << Begin Data Update;
For Each Row( :sort_B = Match( :sort_B, "R123", "rrr", "H123", "hhh", "G123", "ggg", :sort_B ) );
Current Data Table() << End Data Update;
My question is :
How to create a script to auto copy recipe_A & recipe_B to sort_A & sort_B?
(auto copy if sort_A & sort_B data is missing)?