when i run this coding, the price always change everytime I run it. is it possible to make it become fix? I want it to be fix no matter how much run I did on it.
PROC SQL;UPDATE WORK.data2SET 'Price (RM)'n=RAND("INTEGER",12,15);RUN;PROC PRINT DATA=WORK.data2;RUN;
Please try the seed, we need to use seed to make the rand generate consistent values
data data3; set data2; call streaminit(123); 'Price (RM)'n=RAND("INTEGER",12,15); RUN; PROC PRINT DATA=WORK.data3; RUN;
View solution in original post
April 27 - 30 | GAYLORD TEXAN
Designed for SAS users to learn from experts, connect with peers, and explore what's new.
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.