use the 'echo dataset while read' loop to create datasets