BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AllenJ
Fluorite | Level 6

Attempting to use an externally supplied SAS dataset and get the following messages.

NOTE: Data file NC1.REF_ITMSTATSREAD5_O.DATA is in a format that is native to another host, or the file encoding does not match
the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might
reduce performance.
73 run;

ERROR: The value 'TDS Item ID'n is not a valid SAS name.
NOTE: Statements not processed because of errors noted above.

Need help reading or deleteing the 'TDS Item ID'.

 

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Try running this command and then seeing if you can read the data set

 

options validvarname=any;

 

In the future (that's 100% of the time in the future) do not show us parts of the log and fail to show us other parts of the log; in the future (that's 100% of the time in the future) do show us the entire log for this step so we can see the code as it appears in the log, plus any NOTEs, WARNINGs and ERRORs.

--
Paige Miller

View solution in original post

5 REPLIES 5
PaigeMiller
Diamond | Level 26

Try running this command and then seeing if you can read the data set

 

options validvarname=any;

 

In the future (that's 100% of the time in the future) do not show us parts of the log and fail to show us other parts of the log; in the future (that's 100% of the time in the future) do show us the entire log for this step so we can see the code as it appears in the log, plus any NOTEs, WARNINGs and ERRORs.

--
Paige Miller
AllenJ
Fluorite | Level 6
Thanks, that works.
SASKiwi
PROC Star

Please update your post as answered in that case.

Kurt_Bremser
Super User

Please post the complete log of the failing step, so we can see what you try to do and where exactly the proplem happens.

Use tge </> button to open a code box where you can paste the log text.

Tom
Super User Tom
Super User

You have to tell SAS to allow use of non-standard names by changing the value of the VALIDVARNAME option.

options validvarname=ANY;

Then you could reference such names using name literals.

It will probably make your coding a lot easier if you go ahead and make a copy of the dataset where the variable names are renamed to valid SAS names.

data want;
  set NC1.REF_ITMSTATSREAD5_O;
  rename 'TDS Item ID'n=TDS_item_id ;
run;

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 826 views
  • 4 likes
  • 5 in conversation