Hello,
You can build an initial SSIS Package with the Data Import Export Wizard. Just go through the screens and use the “Write a query to specify data to transfer” option, and then in the subsequent Source Query Window specify an “Execute” of your SP.
Towards the end of the Wizard you get the chance to save the process as an SSIS package.
If that works, you can then edit the SSIS Package in Visual Studio to change the properties of the DestinationConnectionFlatFile.
Add an Expression for the ConnectionString and set it to what you want e.g.
"C:MyFolder\\SPOutput" + ((DT_WSTR,30) Day(GetDate())) + ".txt"
Regards,
John Marsh