From bxc at steno.dk  Mon Nov 24 15:39:21 2008
From: bxc at steno.dk (BXC (Bendix Carstensen))
Date: Mon, 24 Nov 2008 15:39:21 +0100
Subject: [Rd] FW: read.ssd
Message-ID: <2F73FA3AF524144C863B7C2C903DBC3301F9319673@exdkmbx002.corp.novocorp.net>

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: 'saikat at stat.wisc.edu'; 'stvjc at channing.harvard.edu'
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)
bxc at steno.dk   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.



[Rd] FW: read.ssd
BXC (Bendix Carstensen