Prev: SAS Calculates the number of days between 31DEC9999 and 01JAN1960
Next: assign a unique random integer to each unique id
From: Ai Hua Wang on 15 Jan 2010 11:09 Hi, =A0 I was wondering if anybody in this list could advise how I can assign a uni= que random integer to each unique id. I have written the following code but= it does not allow me to get the unique random intergers. The 10000000 is p= roportional to the size of the data set. Do I miss anything in the codes? P= lease kindly provide your suggestions. =A0 Thanks, Aihua =A0 data temp; set datset1; urand=3Dceil(ranuni(1)*10000000); run; =A0=0A=0A=0A _________________________________________________________= _________=0ABe smarter than spam. See how smart SpamGuard is at giving junk= email the boot with the All-new Yahoo! Mail. Click on Options in Mail and= switch to New Mail today or register for free at http://mail.yahoo.ca |