| SASFILE mysas.dataset LOAD;
Read the dataset multiple times or access it randomly many times..... SASFILE mysas.dataset CLOSE; |
You should not neglect to issue the SASFILE CLOSE when you have finished reading the data.
| * Instead of doing it this way looping with a macro variable... ;
data sample;
* Do it this way by looping in the data step ; data sample;
|
| data treatall;
set treat0 treat1; BY loop sampsize; run; proc logistic data=treatall etc.;
|
| *- split the data into the different treatment arms -;
data treat0 treat1;
*- define looping macro -;
*- load trt=0 data into memory -;
*- generate samples -;
*- free data from memory -;
*- load trt=1 data into memory -;
*- generate samples -;
*- free data from memory -;
*- add sample data together -;
*- run whatever procedure is needed -;
%mend loop; *- call the macro -;
|
Use the "Back" button of your browser
to return to the previous page