Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-21-2007, 10:56 AM
kstoneman kstoneman is offline
Junior Member
 
Join Date: Jul 2007
Posts: 4
Default Looping using multiple dates

Is it possible to loop using the system date variable less a specific number. I want to enter a date of system date - 10 in a field of an application. Run my AA loop. save information, and then change date to system date - 9. I want continue this until the date is system date - 1.

Any idea will be greatly appreciated.

Kevin
Reply With Quote
  #2 (permalink)  
Old 08-22-2007, 10:41 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 456
Default Re:Looping using multiple dates

Definitely yes, it is possible to do so. What you can do is use excel to perform calculation on today’s date i.e. to get today’s date-10, today’s date-9 and so. Using Tools->Variable Manager, create one list variable say ‘ReverseCount’ and select ‘Read from text file’ option. Create one text file say, rc.txt in c:\ drive and specify its path in ‘Select File’ textbox. This file would contain the series of numbers in reverse order for e.g. ReverseCount=10,9,8,7………

Also, create one more variable say, ‘Ydate’ of value type, to store yesterday’s date. Using excel function ‘=today()-1’ get yesterday’s date and assign it to ‘Ydate’ variable.

Now, loop around this list variable, ‘ReverseCount’ and within this loop calculate, today()-ReverseCount, using excel. The resultant date can be entered in a field of an application. Then using ‘If’ command, compare the resultant date and the yesterday’s date if they are equal then exit from loop, using ‘Exit Loop’ command.

We have also attached the task file (Loop for date.atmn) for your convenience. Copy it under location: My Documents\Automation Anywhere\Automation Anywhere\My Tasks\.

Before running the task, make the changes according to your requirement and using Tools->Variable Manager create list variable, ReverseCount and value type of variable, Ydate as suggested above.
Attached Files
File Type: atmn Loop for date.atmn (6.7 KB, 9 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved