BookmarkSubscribeRSS Feed
Naiii
Fluorite | Level 6

image (18).png                                  

  • Please, can someone help me understand this error?

  • How can I further automate the data loading in SAS Viya?

 

2 REPLIES 2
ballardw
Super User

The source of the error appears to be clear: using an incorrect data type for some purpose.

 

Solution: make sure the data is the correct type.

Almost any sort of "automated" data load where the properties of variables are not controlled may eventually lead to such a problem. A common approach it to control how the data is read into SAS for use to ensure appropriate data types and values. Without knowing a LOT more about your data sources that sort of generality is about all that can be provided.

 

Warning: some file types seem to lend themselves to more data inconsistency issues than others. Spreadsheets do not generally provide any sort of column restrictions so you can end up with some character values mixed in with what should be a numeric column or vice versa. Not much in the way of automation is possible with this if the source is poor to begin with.

Madelyn_SAS
SAS Super FREQ

This SAS note explains the most likely cause. Only DOUBLE is supported for numeric variables



https://support.sas.com/kb/64/945.html

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1005 views
  • 1 like
  • 3 in conversation