[R] R and SAS
Janne.Pitkaniemi at ktl.fi
Fri Jun 1 09:02:01 CEST 2001
Here are the first few lines from the transport file and it looks like the line
size is 80.
HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!000000000000000000000000000000
SAS SAS SASLIB 6.12 VMS_AXP 01JUN01:09:48:41
HEADER RECORD*******MEMBER HEADER RECORD!!!!!!!000000000000000001600000000140
HEADER RECORD*******DSCRPTR HEADER RECORD!!!!!!!000000000000000000000000000000
SAS DATA2000SASDATA 6.12 VMS_AXP 01JUN01:09:48:41
HEADER RECORD*******NAMESTR HEADER RECORD!!!!!!!000000010300000000000000000000
Douglas Bates wrote:
> Janne Pitkäniemi <Janne.Pitkaniemi at ktl.fi> writes:
> > I'm trying to read SAS-data on VAX/VMS to Windows R using
> > foreign pakage read.xport and experience some problems.
> > Following lines are used in SAS to create XPORT file
> > LIBNAME a ''xxx;
> > LIBNAME b XPORT '';
> > PROC COPY IN=a OUT=b;
> > RUN;
> > and I succeed in getting file that looks like correct xport
> > file.However
> > when typing in R following lines
> > read.xport("htpa2000.txt")
> > I get message
> > Error in lookup.xport(file) : SAS transfer file has incorrect library
> > header
> > Does anyone has advice ? Is the problem in VAX/VMS SAS XPORT file ?
> Can you send us the first 160 characters of the file? It is supposed to be
> in text format (more or less) and should look something like
> HEADER RECORD*******LIBRARY HEADER RECORD!!!!!!!000000000000000000000000000000 SAS SAS SASLIB 7.00 OSF1
> It does not contain any carriage returns or line feeds.
> This is what SAS claims in their documentation is the correct initial line
> in the XPORT format. Hence this is what we check for.
> What SAS actually creates is often different.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 401 bytes
Desc: Card for Janne =?iso-8859-1?Q?Pitk=E4niemi?=
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20010601/01ed211a/Janne.Pitkaniemi.vcf
More information about the R-help