Hi, I am trying to convert the characters to hexadecimal. Here you have an example. I have a variable named Model , where model= 3096-712 which is a string. I need to assign it to a new variaable called V1_hex = '3096'x where it should take the first four characters of model. Please help me with some solution. Thank you, Regards, Pon1. I tried using this code DATA MYDATA; format V1_HA V2_CHA $Char8.; V1_CHA='3096-712'; V2_CHA='3096-708'; run; Data Outdata; format V1_Hex V2_Hex $hex4.; V1_Hex=put(Substr(V1_CHA,1,4),$hex4.); V2_Hex=put(SubStr(V2_CHA,1,4),$hex4.); run; proc Print Data=outdata; run //* I go the output as ............................................. The SAS System Obs V1_Hex V2_Hex V1_CHA V2_CHA 1 F4 F4 . . Help me to code for abtaining the
... View more