@Tom wrote: Is this some type of homework assignment? What have you attempted? How did it go? How was the result different than you wanted. Also why did you go to the extra effort to take a PICTURE of your code and insert it into your message instead of just copying the TEXT of the code? Not only was that harder for you it marks it impossible for someone to help you by just making minor edits to your code. Nevermind, I figured it out. Thanks for all your help! yes, this is a homework assignment. I need the last name in the D'amore to say D'Amore. I am new to programming and don't know the best way to complete stuff. So this is a work in progress for me. data Oscar; length String $ 10 Name $ 20 Comment $25 Address $ 30 Q1-Q5 $ 1 ; infile datalines dsd dlm= " "; input String Name Comment Address Q1-Q5; datalines; AbC "jane E. MarPie" "Good Bad Bad Good" "25 River Road" y n N Y Y 12345 "Ron Cody" "Good Bad Ugly" "123 First Street" N n n n N 98x "Linda Y. d'amore" "No Comment" "1600 Penn Avenue" Y Y y y y . "First Middle Last" . "21B Baker St." . . . Y N ; *(2A)*Using the two length functions, compute the length of 'String' not counting trailing blanks and the storage length of 'String'. Call these two variables L1 L2*; data length; set work.oscar; L1=lengthn(String) + lengthn(String); L2=lengthc(String) + lengthc(String); findc(String, '2', '3') run; title 'Lengths of String'; proc print data=work.length; run; *(2B); data Uppercase; set work.length; String= upcase(String); Name = propcase(Name); run; title "Modified Program of Character Cases"; proc print data=work.uppercase; run; so when I run it like this, it does not change the D'amore to D'Amore. That is what I am trying to do. I have went back into the first part of the program and tried the Name = Propcase(Name, " . ' "); String = upcase(String); it worked after I made some corrections.
... View more