| Date: | Wed, 9 Nov 2005 14:03:16 -0500 |
| Reply-To: | Ei-Wen Chang <ei-wen_chang@CTB.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Ei-Wen Chang <ei-wen_chang@CTB.COM> |
| Subject: | Input file question? |
|---|
Hi,
The followings are my data and code. The first line is read OK, but the
second line can't be read. Also, "output notsure;" doesn't work too.
Any idea why? Thanks for your help in advance.
Ei-Wen
TXT file
===================================================
CR 3188,Bank Two
TR 27483,Mary
CR 3189,Bank 2
TR 27483,Tom
CR 3110,Bank 3
TR 27483,John
====================================================
Code:
===================================================
data notsure;
informat RecorderType $2. CustomerID $10. CustomerName $64. ID $10. Name
$64. ;
retain CustomerID CustomerName ID Name ;
infile iknow missover dsd delimiter=' ,' ;
input RecorderType @;
select (RecorderType);
when('CR') input CustomerID CustomerName ;
when('TR') do; input ID Name ; output notsure; end;
otherwise;
end;
run;
proc print;
run;
|