12-12-2013 11:45 AM
Was curious if anyone has ever run into this issue? I ran the the following code in Base SAS:
PROC SURVEYSELECT DATA = USER.INPUT1 METHOD = SRS REP = 1
SAMPSIZE = 270000 SEED = 12345 OUT = USER.OUTPUT1;
and have gotten the same output sample every time. However, when I run this code as a program in Enterprise Guide, I get a different sample.
Sample is EG sample is random, and the only reason it matters as I was helping a colleague convert some Base SAS programs to EG and
started noticing some slight differences in outpu
12-12-2013 03:29 PM
When you specify the same seed you will get the same result set given the same input. See the documentation for Surveyselect. Either change seed or remove to generate diferent result sets.
12-12-2013 03:50 PM
That is what I thought should be the case, but it is not. I have now tested it several different ways, but in its simplest form:
- I import a File A
- Run the Proc Surveselect I listed
- I import File A
- Run the exact same Proc Surveselect I listed as a program
I get different samples...
12-12-2013 05:22 PM
EG and Base SAS are likely running different streams for the random number stream.
They are NOT the same process. Run the select twice in BASE or EG and I suspect you get the same result. If you need to get the same result, run on the same platform.