[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

re: [sqr-users] Name



> I need some help in getting lastname and middle name from the
> following string which i get through a flat file. Some names have
> middle name at the end and some don't(like M and R). I want to
> get the last name and first name and give a warning message
> when there is a middle name.
>
> Beach,Linda
> Ward,Joan
> Williams,Robert M
> kim,mellisa R

This solution assumes there is no space except between a first name
and middle name.

unstring $FullName by ',' into $LastName $FirstAndMiddleName
unstring $FirstAndMiddleName by ' ' into $FirstName $MiddleName
if $MiddleName <> ''
    ! warning
end-if

Andrew :)



**********************************************************************
This e-mail, including any files or attachments transmitted with it, is 
confidential and intended for a specific purpose and for use only by the 
individual or entity to whom it is addressed.  Any disclosure, copying or 
distribution of this e-mail or the taking of any action based on its contents, 
other than for its intended purpose, is strictly prohibited.  If you have 
received this e-mail in error, please notify the sender immediately and delete 
it from your system.  Any views or opinions expressed in this e-mail are not 
necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). 
 E-mail transmission cannot be guaranteed to be error-free or secure or free 
from viruses, and NU disclaims all liability for any resulting damage, errors, 
or omissions.
**********************************************************************


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users