I wanted to run a file having sql statements and export that result set into another file.
Can you please explain me here how can we achieve?
Which utility do you use to run the queries?
If Bteq check the .RUN file, .Export commands. There would be also different examples available if you seach for them in google...