Hi again Helen -
How about opening the file in notepad and posting the first few lines and
the last few lines? This may help indicate the problem.
Are you sure you don't have an export file? These are different from a
cport files. Read here: http://xrl.us/f523
You might also do the same in hex. Something like this could be useful if
you don't have a hex editor:
data bytes (keep= position hexbyte);
infile 'c:\temp\205DAI.v6x' recfm=n;
input byte $char1. @;
position+1;
hexbyte=put(byte,$hex2.);
put _all_;
run;
Paul Choate
DDS Data Extraction
(916) 654-2160
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-***@LISTSERV.UGA.EDU] On Behalf Of
***@HOTMAIL.COM
Sent: Thursday, May 19, 2005 9:44 AM
To: SAS-***@LISTSERV.UGA.EDU
Subject: Re: ERROR: The value 205DAI is not a valid SAS name
Hi,
Here's the try using Gerhard's codes:
1 options VALIDVARNAME=ANY;
WARNING: Only the Base product and the SAS/STAT product have been
tested for use with
VALIDVARNAME=ANY. Other use of this option is considered
experimental and
may cause undetected errors.
2 libname test v604 'c:\temp';
NOTE: Libref TEST was successfully assigned as follows:
Engine: V604
Physical Name: c:\temp
3 filename tranfile "c:\temp\205DAI.v6x";
4 proc cimport library=test infile=tranfile; run;
ERROR: The value '205DAI'n is not a valid SAS name.
WARNING: Skipping data set due to error.
NOTE: PROCEDURE CIMPORT used:
real time 0.00 seconds
cpu time 0.00 seconds
5
6 libname a v604 "c:\temp\";
NOTE: Libref A was successfully assigned as follows:
Engine: V604
Physical Name: c:\temp
7 data sasuser.test;
NOTE: SCL source line.
8 set a.205DAI;
--------
22 202
ERROR: File WORK.DAI.DATA does not exist.
ERROR 22-322: Syntax error, expecting one of the following: a name, a
quoted string,
;, END, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_,
_NULL_.
ERROR 202-322: The option or parameter is not recognized and will be
ignored.
9 run;
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set SASUSER.TEST may be incomplete. When this step
was stopped
there were 0 observations and 0 variables.
WARNING: Data set SASUSER.TEST was not replaced because this step was
stopped.
NOTE: DATA statement used:
real time 0.01 seconds
cpu time 0.01 seconds
10
11 libname a xport "c:\temp\205DAI.v6x";
NOTE: Libref A was successfully assigned as follows:
Engine: XPORT
Physical Name: c:\temp\205DAI.v6x
12 proc copy in=a out=work;
13 run;
NOTE: Input library A is sequential.
ERROR: File is probably a cport file. XPORT engine unable to read file
created by
proc cport. Please use proc cimport to convert this file to
native format.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE COPY used:
real time 0.00 seconds
cpu time 0.00 seconds
NOTE: The SAS System stopped processing this step because of errors.