Did not seem to reach Saikat DebRoy, this might be the forum. Bendix -----Original Message----- From: BXC (Bendix Carstensen) Sent: 24. november 2008 15:00 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: read.ssd
It's always annoyed me that that read.ssd crashed on datasets with long variable names, but the other day a collegue of mine pointed out to me the SAS-option validvarname=V6, which takes care of the problem by truncating names. So here is a first go at it which works, but lets you guess what variable the truncated names refer to (normally a minor problem). The small changes in the code are flagged with "####". Hope it makes it into read.ssd. If you want to supply information on the long filename or even restore them, the solution is to construct a proc contents step and output the filenames along with their labels, import this dataset too and use it to restore names. This is considerably more longwinded and could presumably wait. The little example SAS-program should give the details of the SAS-code needed, but a lot of namefidgeting in R is required afterward to make it work... Best regards, Bendix ______________________________________________ Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38 (mobile) [EMAIL PROTECTED] http://www.biostat.ku.dk/~bxc This e-mail (including any attachments) is intended for the addressee(s) stated above only and may contain confidential information protected by law. You are hereby notified that any unauthorized reading, disclosure, copying or distribution of this e-mail or use of information contained herein is strictly prohibited and may violate rights to proprietary information. If you are not an intended recipient, please return this e-mail to the sender and delete it immediately hereafter. Thank you.
______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel