SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
JAL Variables

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
JAL Variables
Author Message
Rick Ireland



Joined: 30 Oct 2000
Posts: 44

Post JAL Variables Reply with quote

(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!

Thu Nov 02, 2000 6:16 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Re: JAL Variables Reply with quote

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!

Thu Nov 02, 2000 9:23 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: JAL Variables Reply with quote

Hello,

The JAL function Today obtains the system date
format: Today ( recieve variable of type date )

The JAL function Now obtains the system time
Format: Now ( recieve variable of type time )

To get a Datetime stamp for a log file could I do the following:

Now ( tNow )
Today ( dToday )
DateTime ( dToday, tNow, dtTimeStamp )
Concat ( "The current system time is:", dtTimeStamp, strTimeMark )

This can be easily modified for your process.

Thu Nov 02, 2000 9:51 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.