Hi Guys,

I have a scenario where I'd like to access a datapool at runtime and always have a new record accessed. Meaning, I would like a new row to be accessed each time the datapool is read from. I would not be looping through this script though. Should I leave out the code which initializes the datapool iterator each time? Here is my current code...

java.io.File dpFile = new java.io.File((String)
getOption(IOptionName.DATASTORE),"resources\\Basic _Functionality\\CustCreate.rftdp");
IDatapool dp = dpFactory().load(dpFile, true);

// Using datapool iterator class
IDatapoolIterator dpIter = dpFactory().open(dp, null);

//Using default equivalence class

Please help! Thanks.