Renaming a file with timestamp as part of the new filename. (Doc ID 1027720.1)

Last updated on APRIL 01, 2016

Applies to:

Sun e*Gate - Version 4.1.2 and later
Microsoft Windows (32-bit)
Microsoft Windows (32-bit)
***Checked for relevance on 12-November-2013***

Symptoms

Need to rename a file:
(file-rename '\home\user1\output.dat' '\home\user1\mytestdata.dat')
During execution of file-rename function I need to insert a current time (year, month and day) in the mytestdata.dat file name. How can this be done?

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms