I am actually struggling with a similar problem - extra variables. The CSV file is generated by MS Access (I believe). I have checked for duplicate headers and long names. The TERMSTR= option does not help. My suspicion was extra trailing commas, but that did not seem to be the case. The data seem to go where they should and the extra columns (VAR31 and VAR32 in my case) are missing. Converting to xlsx and then back to CSV (hoping to remove odd characters) does not help. Before I just DROP VAR:; i would like to discover why - probably just to be sure. The system generates quite a few of these csv files not all have this issue. *** update *** As I continued to work on this I have found a parsing problem in the IMPORT process that generates the DATA step that actually reads the CSV file. I have not solved this yet, but what I think I know so far is that a long DSD string is incorrectly parsed. the field in question contains a quoted string and some special characters such as: "blah blah ""special blah"" other blah + more blah" The resulting DATA step has incorrect lengths assigned to the INFORMATs and an extra VARxx. Ultimately the data go into the correct fields, but with the incorrect lengths there is truncation. I will try to get permission to post the CSV or a portion of it. Message was edited by: Art Carpenter
... View more