Dynamically name a file with date in fileanme within BTEQ

Database
Enthusiast

Dynamically name a file with date in fileanme within BTEQ

Is there a way to name a file in BTEQ, when creating/writing out the file to a location, and have the current days date as a part of the filename?

1 REPLY
Enthusiast

Re: Dynamically name a file with date in fileanme within BTEQ

A note to add: I am currently using outside the BTEQ script and using OS shell commands to change the file name to add date, but I'm looking to do it within BTEQ to make it seeming easier. Also, if this is not doable in BTEQ, can it be done in TPT, and if so, any code examples?