//
//delete record control
//
//This control delete record of current file. 
//

//Syntax
delrec;

//Example 1
//generate standard normal distribution.
//(quation!)
//When generate record by loop control,you must clear current data before this loop control.
//If without clear, loop is excuted for each current data record.
clear;
for(i=1;i<=1000;i++) {
   y=ranstd(0,1);
   outrec;
}

plot hist y;

view standard normal distribution

//cutoff abs 1 sigma data. if(y <= 1 and y >= -1) { delrec; } plot hist y;

view data which are cutoff y <= 1 and y >=-1