Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing problem in SAS infile statement

Status
Not open for further replies.

sap1958

Technical User
Oct 22, 2009
138
US
Here is a snapshot of the data I am importing:
james smith" <james_smith@hotmail.com> "a allen" <weshae@aol.com>, "aaron jones" <meismjones@gmail.com>,adam smith ii <adam@gmail.com>
Program I wrote:
data DCAreaMembers;
length FName $10 LName $20 email $40 ;
infile 'v:\orion\mymembers.txt' dlm = '" < > ,';
input FName $ LName $ email $ ;
run;
When I run it, the program pulls the first record only. One issue is that a few of the records show a name suffix. Another issue is that the data shows multiple names and emails on the same row. How can I address both issues. I would not mind combining the suffix with the last name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top