Dear Experts, Got the following situation: Data Have; input D1-D10 $; Cards; 80 81 32 45 22 75 10 12 65 82 45 20 82 15 80 32 21 45 50 32 19 23 75 83 22 19 25 32 10 12 75 34; .... (about 30,000 rows) I would like to convert the above data as - anywhere if there is 80 or 81 or 83 then it is h1, similarly where ever there is 23, 32, or 34 then it is f4 etc. At the end it would all be one letter and one number like: h1 h1 f4 c2 f1 b2 a1 a1 c5 h1 c2 f2 h1 etc. I tried like: if D1 in ('80', '81', '83') then D1='h1'. Since D2 or D3 or D4 etc. will also have a value either 80 or 81 or 83 then typing for D2 (and D3 and D4 etc.) like 'if D2 in ('80', '81, '83' ) then D2='h1' and son on and so forth is very cumbersome. I am sure there are experts in the community who have better ideas to help me out by eliminating 'if ... then' statementes for each variables and all its values. Thank you. Sijansap
... View more