Data Intelligence, Business Analytics
I am trying to import a csv file on sas using proc import.
the file imports successfuly but wit an error due to data formart of a few variables.
how do i make my import process ignore this data format issue as am scheduling a flow process which cannot proceed because of this error.
N/B the import is still successful with the error but i need to get rid of the error for my process to continue flowing.
thanks in advance.
Do you have characters in a mostly numeric field? If so, write out the import like so:
infile "..." dsd delimiter=',' firstobs=2;
thank you very much.
it is working now.
use the proc import "save program" function from the GUI menu to save the SAS code it generates for you and then edit the "proc import" input statement directly. add specific informats for every variable;
var1:$mmddyy10 var2: $char20.
look into adding the following "infile" options as appropriate / dsd pad missing firstobs missover scanover
good luck. TV
used Ajay's suggestion and followed your advice on formatting the variables and it worked perfectly.