There are several options available, the most simple option is to use "macro-parameters". For example you can do FileCopy "somefile.here", "@T"mm-dd-yy-hh-mm-ss".here" Note that macro parameters can be used in many places, including JAL scripts, SQL scripts, command lines for "program" jobs, and command line parameters. For more details see "@ macro-parameters" topic in the online help file Another option for JAL script is to use various Date and Time statements. For example: Dim time_now, time Dim date_today, date Dim timestamp, datetime Today date_today Now time_now DateTime date_today, time_now, timestamp You can also combine two options described above as the following: When declaring your variable Dim timestamp, datetime, "@T"mm/dd/yy hh:mm:ss"" or Anytime after Set timestamp, "@T"mm/dd/yy hh:mm:ss"" Also, note that the on-line help file includes hundreds of different examples. : (I'm probably missing it in the documentation, but..) : How can I access system information, such as date and time, and store them as : JAL variables? : We use a timestamp to rename input files as they arrive, and would have to : recreate that naming convention to automate the task in question. : Thanks!
|