|
Now I have a very weird problem,I want to import a txt data whose formate likes this:zip_code phone_number date_of_birth109017741|8453684588|10201966
100246445|2125950041|05231952 I used the following code to read the data data a;infile 'C:\Documents and Settings\Desktop\data.txt' DLM='|' dsd missover truncover;format Zip_Code $30.Client_Home_Phone $40.Client_Date_Of_Birth mmddyy10.;informat Zip_Code $30.Client_Home_Phone $40.Client_Date_Of_Birth mmddyy10.;length Client_Home_Phone $40;input zip_code $Client_Home_Phone $Client_Date_Of_Birth mmddyy10.;run; Log shows no error, but he the first row of SAS data, the Client_Date_Of_Birth is always missing.Just like that 109017741 8453684588 .100246445 2125950041 05/23/1952. Could anybody help me? Thanks very much.
|