I've got a situation where I need to try to replace specific combinations of characters in a field with another character. Here is as an example of what the starting field would have in it:
I've been given a conversion table with that coverts a 2digit UPPERCASE/lowercase combination to "F" or "B" (representing Forward or Backward). Example:
The end result after the convertion would be: "FFB".
The data table has about 50,000 records and there are about 120 rows in the conversion table.
I'm confused on how to join the data table to the conversion table. Anyone have any ideas on how this might be done?
Code:
data data_tbl;
ProcessFlow = 'AbBcCa';
run;
I've been given a conversion table with that coverts a 2digit UPPERCASE/lowercase combination to "F" or "B" (representing Forward or Backward). Example:
Code:
data convert_tbl;
input Key $ NewKey $;
datalines;
Ab F
Bc F
Ca B
;
run;
The end result after the convertion would be: "FFB".
The data table has about 50,000 records and there are about 120 rows in the conversion table.
I'm confused on how to join the data table to the conversion table. Anyone have any ideas on how this might be done?