LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2011, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 23 Aug 2011 21:48:20 -0400
Reply-To:   Nat Wooding <nathani@VERIZON.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nat Wooding <nathani@VERIZON.NET>
Subject:   Re: Reading in from csv files - when does SAS make VAR out of what is in header?
In-Reply-To:   <000001cc60fe$12ce2040$386a60c0$@mindspring.com>
Content-Type:   text/plain; charset="us-ascii"

Friends

Peter and I corresponded off line about this and he sent me a sample of the file.

I, too, got the variable labeled VAR but the other names followed their original form seen in the CSV. However, none of the other variables had a Greek letter in their names. Their units were nanograms per milliliter and the symbol for "nano" is an 'n'. It looks to me like SAS is choking on the 'mu' symbol which it can't convert it an English letter. After all, Greek letters are not valid in SAS variable names.

I suggested to Peter that he simply change mu to a lower case 'u' in the Excel file. That was how I wrote the symbol for micrograms when I was reporting chemical results.

Nat Wooding

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Peter Flom Sent: Monday, August 22, 2011 3:03 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Reading in from csv files - when does SAS make VAR out of what is in header?

Good afternoon

I often (well, pretty much always) get data from clients in Excel. Usually, I save it as .csv and then read it into SAS using the import wizard.

Clients do funny things. They name 20 variables with the same name. Really. Sometimes this is the fault of the product they used to get the data, and you get things like 10 variables named question1. When this happens, SAS sometimes copes by creating variables named VAR XX. Nice. It alerts you that there is a problem, doesn't overwrite data, and is a good solution.

BUT

Recently, a client sent an Excel file. One of the header rows was BAP mug/l (where mu is the Greek letter). None of the other variables started with BAP, and SAS coped fine with other variables that had Greek letters. But for some reason, BAP was renamed with a VAR.

This caused me some embarrassment, with me telling the client there was no variable called BAP and her saying = there it is! Look at the spreadsheet.

Has anyone else run into this?

Peter

Peter Flom

Peter Flom Consulting

http://www.statisticalanalysisconsulting.com/

http://www.IAmLearningDisabled.com


Back to: Top of message | Previous page | Main SAS-L page