@vishwasanj :
Please use the following code to fix your problem .
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
n = 5 ; // Random # of iterations
for (i = 1 , i <= n , i++,
RowsToSelect = Random Index(40,5);
dt << Select Rows(RowsToSelect);
dt << Subset("");
);
// In your case data is coming from a file
// So I am closing out the source table here that I opened for the purpose of demonstration
Close(dt,"No Save");
// Make a list of all open Data tables
openDTs = List();
For( i = 1, i <= N Table(), i++,
Insert Into( openDTs, Data Table( i ) );
);
// Concatenate
for(i = 1 ,i <= N Table(), i++,
dt_Results = openDTs[i];
//Close(openDTs[i]);
,
dt_Results << Concatenate(openDTs[i],"Append To First Table");
Close(openDTs[i]);
);
dt_Results << Set Name("Results");
Best
Uday