BTEQ Export to override existing file

General
Enthusiast

BTEQ Export to override existing file

Hi

We are creating data files using BTEQ export in Unix environment. We have to create a fresh data file each week.
I want to override previous export file when I run BTEQ export. Please help.

Thanks
Meta
2 REPLIES
Enthusiast

Re: BTEQ Export to override existing file

Delete the file before from within bteq before your export command:

.os rm exportfile

.export data file = exportfile

where exportfile is the path and filename of your data file.
Enthusiast

Re: BTEQ Export to override existing file

Thanks Jimm