PROC SETINIT;RUN;
Original site validation data
Current version: 9.04.01M3P062415
Given with "where" condition, I have 116 death_of_diagnosis_mm=99. After run with rand("INTEGER", death_of_death_mm) those 119 missing values are simply replaced by .
Strange.
@Cruise wrote:
PROC SETINIT;RUN;
Original site validation data
Current version: 9.04.01M3P062415
Given with "where" condition, I have 116 death_of_diagnosis_mm=99. After run with rand("INTEGER", death_of_death_mm) those 119 missing values are simply replaced by .
Strange.
Since INTEGER does not work, the function call creates a missing value. That's clear from the log.
Use UNIFORM instead, that has been around since the beginning of rand().
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.