The combination of the fileref PRINT and the ODS option in the FILE statement routes the results of the DATA step to ODS. Only the HTML destination is open. TEMPLATE= tells ODS to use the table definition named phonelist, which was just created with PROC TEMPLATE.
file print ods=(template='phonelist'