Hi,
I have following bteq script to export some data on Unix enviornment. run_date I am getting from teradata Control date table:
.export report file ='export_file_name'
Select ****
FROM *,*,*,*,control_table
WHERE
cust_date between Control_table.run_date -2 and control_table.run_date
;
.export reset
update control_Table
set run_date = run_date +2;
.quit;
I want to attach Control_table.run_date to the export file name so my export file command would look like:
.export report file ='Control_table.run_date.export_file_name'
file name I would like to be for example: 20070418.export_file_name
Any solution?
AKA
I have following bteq script to export some data on Unix enviornment. run_date I am getting from teradata Control date table:
.export report file ='export_file_name'
Select ****
FROM *,*,*,*,control_table
WHERE
cust_date between Control_table.run_date -2 and control_table.run_date
;
.export reset
update control_Table
set run_date = run_date +2;
.quit;
I want to attach Control_table.run_date to the export file name so my export file command would look like:
.export report file ='Control_table.run_date.export_file_name'
file name I would like to be for example: 20070418.export_file_name
Any solution?
AKA