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().
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!
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.