Create Sql Plus Script Dynamically From Select Statement

Create Sql Plus Script Dynamically From Select Statement