recordpointer=stocks;
while (anotherrecord(recordpointer))
{
printrecord(recordpointer);
recordpointer = next(recordpointer);
}