What is the exact error in your SASLOG? Best approach is to paste the SASLOG before and after the error condition.
Also, it is unclear why you cannot combine the two DATA steps, presuming what you want to accomplish is to have the first DATA step's PUT reference inside the body of the EMAIL.
There are several technical and DOC references on this topic at the SAS support website
http://support.sas.com/ and also you will likely find references by doing a Google advanced search against the SAS.COM site (include the parameter site:sas.com in your search string), using related keywords.
Scott Barry
SBBWorks,Inc.
http://www2.sas.com/proceedings/forum2008/038-2008.pdf