Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Back-up option in IFD, date time stamp?

Status
Not open for further replies.

RedSoxM3

IS-IT--Management
Mar 27, 2006
39
US
6.7.1 Win2K

I have a simple in to out map that moves a static named text file. As I move it, I would like to create a back-up...but also create a date-time stamp somehow. Is there a way to do it on the card output in the IFD?
 
No, the output filenames can only be either hardcoded into the IFD or use the input wildcard filename.

To get a date into the file name the best way to do it is either use a RUN map or use the PUT function.

Cheers,
Olly.
 
There is a limit on currentdatetime() based on the OS. If the system is multi-threaded and you do not have another parameter to make sure the file name is unique, you can get more than one map running in the same millisecond.

One solution was to have a card prior to the output card call a C function via EXIT to generate a unique value.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top