Hi all,
I have created a bteq script that basically gathers a bunch of show table, show view, etc. statements and runs the file to create the ddl file. I use this to perform migrations.
I would like to be able to export to a new file immediately after the .run file statement in the script. My goal is to append the contents of this new file to the end of the file created by the .run file command. The script goes something like this:
export format.txt
sel 'show table' dynamic sql
sel 'show view' dynmaic sql
etc...
.run file format.txt creating ddl.txt
export another.txt
add data to another.txt
append data in another.tx to the end of ddl.txt
quit
No matter what I do, I cannot get the script to execute any statements past the .run file format statement. Is there no way around this? I pulled this from the bteq documentation:
If you specify a RUN command within a run file, BTEQ switches and begins reading from the
new file; BTEQ does not return to the previous file.
Can there be nothing executed after the .run file command in my example above?
I simply drop the script into a bteqwin window to be executed.
Thanks,
Joe
Forums: