/* This example divides the sample dataset into 2 subsets one with first 50 records and other with remaining */; data sub1 sub2; set Sample; i+1 ; if (i <=50) then do; output sub1; end; else do; output sub2; end; drop i; run;
data sub1 sub2; set Sample; i+1 ; if (i <=50) then do; output sub1; end; else do; output sub2; end; drop i; run;
run;