Hi all! I'm having some issues getting the "inits" variable to be 3 characters and keep all 3 initials. So far, the inits variable is 24 characters and if I add a length statement "Inits $3;" it only outputs the first initial (not FML) This is my code: DATA WORK.State; SET WORK.State2 (RENAME = (SocSecNum = SSN)); ; FirstInit=COMPRESS(FirsitInit, '.'); xMiddleInit=COMPRESS(MiddleInit, '.'); xLastInit=COMPRESS(LastInit, '.'); Inits = FirsitInit || MiddleInit || LastInit; Initials = TRANWRD(COMPRESS(Inits, '. '),' ' , '-' ); Inits = Initials; RUN; Thank you!
... View more