I am recoding a large number of coded character variables into dummy variables. I am using one of the published routines that creates a series of If-Then statements and then stores then in a character variable in a SAS dataset. Unfortunately, that routine did not indicate how to use the character variable to create executable SAS datastep statements. Here's an example: Dataset work.dummy code... Obs SAS_Code_Var 1 If orig_var eq 'a' Then orig_var_a =1; Else orig_var_a =0; 2 If orig_var eq 'b' Then orig_var_b =1; Else orig_var_b =0; What is a good way to use this variable to implement executable SAS code?
... View more