Thanks Paul,
I went to the SAS documentation for functions and found it.
I 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.
I was going to copy all the code but I am at work and its on my computer at home.
Thanks again for your help.
Best wishes
Robin