Trending
Is The Licensed Zaire Ebolavirus Vaccine Suitable To Combat The Current Bundibugyo Ebolav… is trending now Time to break down the barriers to hepatitis care is trending now Gamma-ray pulsations reveal extreme 3.2-millisecond pulsar 3,900 light-years away is trending now A graphene-based intelligent reconfigurable reflective surface for circularly polarized b… is trending now Climate cycles drove severe droughts behind the collapse of Bronze Age civilizations, stu… is trending now New Research Shows How Clouds Shape the Interiors of sub-Neptunes is trending now Vinicius Junior camp in talks with Arsenal and Liverpool as Real Madrid issue ultimatum is trending now 2026 WAFCON will decide Africa’s 2027 World Cup teams — FIFA is trending now Algeria get off to a perfect start at CAN 2026 with dominant win over Senegal is trending now Knockout in friendly: referee unable to continue after furious mass confrontation is trending now 'Any unnecessary pregnancy is promo' - Wasiu Ayinde declares amid baby mama's neglect all… is trending now ‘I’m obsessed’ – Shakira on why she chose Burna Boy for World Cup song is trending now Is The Licensed Zaire Ebolavirus Vaccine Suitable To Combat The Current Bundibugyo Ebolav… is trending now Time to break down the barriers to hepatitis care is trending now Gamma-ray pulsations reveal extreme 3.2-millisecond pulsar 3,900 light-years away is trending now A graphene-based intelligent reconfigurable reflective surface for circularly polarized b… is trending now Climate cycles drove severe droughts behind the collapse of Bronze Age civilizations, stu… is trending now New Research Shows How Clouds Shape the Interiors of sub-Neptunes is trending now Vinicius Junior camp in talks with Arsenal and Liverpool as Real Madrid issue ultimatum is trending now 2026 WAFCON will decide Africa’s 2027 World Cup teams — FIFA is trending now Algeria get off to a perfect start at CAN 2026 with dominant win over Senegal is trending now Knockout in friendly: referee unable to continue after furious mass confrontation is trending now 'Any unnecessary pregnancy is promo' - Wasiu Ayinde declares amid baby mama's neglect all… is trending now ‘I’m obsessed’ – Shakira on why she chose Burna Boy for World Cup song is trending now
Qualcomm

Loading a 1% Random Sample

Loading a 1% Random Sample

I needed to load a one percent random sample of a large file last week. I’m sure others have figured out this method but this was the first time I coded it like this: MYSAMPLE: Load * from MYFILE.qvd (qvd) Where Rand()<=0.01; The Rand function returns a random value between 0 and 1. In the load statement above it would only be true 1% of the time (approximately) -- that would load only 1% of the rows. If it was coded as Where Rand()<=0.20 then it would be a 20% random sample, etc. This method can be used with almost any Load statement even one of the steps in a preceding load.  Note that we're talking about random numbers here so the total number of rows loaded using this technique will not be exactly 1% of the total rows in the file, although it will be close especially when the total number of rows in the file is very large. Be aware too that the rows that get loaded will not be an evenly distributed sample of rows although it will be close.   ★★★

View original source →

Related