> i am using clcok scan with ADP, and it seems like when the date variable
> passed to it is systemDate then it works but not with the date  in advance.

> for {set i 0} {i < 10} {incr i 1} {
>     set testDate [clock format[clock scan "$mDt + $i"] -format "%Y%m%d"]
> }

Perhaps you should learn Tcl.

In a Tcl "for" command, you compare the value of i with ten by saying
{$i < 10}, not {i < 10}.

In Tcl, you separate the words of a command with spaces, as in

    [clock format [clock scan ...]]

not

    [clock format[clock scan ...]]

In a Tcl "clock scan" command, you specify an interval using the format
"number unit", as in

    clock format [clock scan "20010429 + 3 day"] -format "%Y%m%d"

not

    clock format [clock scan "20010429 + 3"] -format "%Y%m%d"

> IT DOES NOT WORK WHEN THE VALUE OF mDt IS CHANGED FROM THE SYSTEM DATE.

Once again you have posted an essentially useless complaint, this time
that "it does not work", and you have done so in all caps to be sure
that you really piss us off.

You could post useful information, such as the exact error message that
appeared on your screen or in your server log, but you choose not to.
Apparently you want to make it harder for us to help you.

> the value of mDt is 20010429 and todays date is 20010427 IR     FAILS..........

>         ANY IDEA???????/

I have the idea that all you do by writing in all caps is piss off those
who could help you.  If anyone on the list likes the all-caps style,
please correct me.

Reply via email to