Discussion:
"not a valid SAS name"
(too old to reply)
Kea
2007-07-26 13:08:38 UTC
Permalink
Dear All,

I am trying to read from a very large data file using the simple code
below.

libname GB 'C:\';
data GB.ALL;
Infile 'C:\Master_File.txt' recfm=f lrecl=3804 ;

Input

@ 1 KRDTUR 3.
@ 4 SUBENO 5.
@ 9 YIL 5.
@ 14 SIRANO 7.
@ 21 LAD_NBSM_PROCESSING_COUNTER 3.
@ 24 LAD_BRANCH 5.;
run;

However, when I run it, I get the following error message for a few
variables:
ERROR: The name KRDTUR is not a valid SAS name.
ERROR: The name SUBENO is not a valid SAS name. ...

It seems like there's nothing wrong with the variable names. What
could be the problem?

Many thanks in advance,

Kea.
Robert Bardos
2007-07-26 13:20:05 UTC
Permalink
Well, this

ERROR: The name KRDTUR is not a valid SAS name.

implies that there are some 'invisible' characters after KRDTUR and SUBENO
in your input statement. Type blanks over these and give it another try.

Robert
-----Ursprüngliche Nachricht-----
Gesendet: Donnerstag, 26. Juli 2007 15:09
Betreff: "not a valid SAS name"
Dear All,
I am trying to read from a very large data file using the simple code
below.
libname GB 'C:\';
data GB.ALL;
Infile 'C:\Master_File.txt' recfm=f lrecl=3804 ;
Input
@ 1 KRDTUR 3.
@ 4 SUBENO 5.
@ 9 YIL 5.
@ 14 SIRANO 7.
@ 21 LAD_NBSM_PROCESSING_COUNTER 3.
@ 24 LAD_BRANCH 5.;
run;
However, when I run it, I get the following error message for a few
ERROR: The name KRDTUR is not a valid SAS name.
ERROR: The name SUBENO is not a valid SAS name. ...
It seems like there's nothing wrong with the variable names. What
could be the problem?
Many thanks in advance,
Kea.
Loading...