The shell encountered an end-of-file character while reading a here document before it encountered name.
Make sure that name appears in the text of the input file.