gets the next record of the input and inserts it into listname

processrecord(plistname,pdone)