I am sending an e-mail with attachment txt file which is created in the above DATA step of the mainframe SAS program. While in first time run, the sas program giving error for email as ERROR: Error opening attachment file TSA.DEVL.RM81251.T0457.DEC07. And also i am recieving the empty file through mail. when i tried in 2nd time it runs fine. Please help to resolve this problem.