BookmarkSubscribeRSS Feed
natachastat
Calcite | Level 5

hello, 

I'm trying to run fine gray sub distribution hazard model on 'SAS on demand'. 

with the model FG, I get the following sentence : "ERROR: Invalid characters were present in the data."

with eventcode (cox), the model is well running, so I wonder what is the problem.

can I have a help, please?

1 REPLY 1
ballardw
Super User

Sounds pretty clear, there is something in one or more variables in the input data that is invalid.

With a message about characters I would suggest running proc freq on any of the character variables used in the model to see what might be consider invalid.

 

Note: ANY discussion of ERRORS should include 1) the LOG showing the code and all messages and 2) best would be to provide and example of data in the form of a working data step.

The code is to head off all of the questions about variable type use, role in the model, dependent, independent, as well as options that may not interact well with each other. All of the messages are important because of the times SAS reports a problem and use of an alternate option in an attempt to get some result. The example data clarifies variable types and will help someone suggest which variables need to be looked at for likely problems.

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 912 views
  • 0 likes
  • 2 in conversation