String to RowSet to use in a Loop

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.

String to RowSet to use in a Loop

Postby smandadi » Tue Jul 20, 2010 11:07 am

Pseudo Code
Variable: myVar=abc,def,xyz
for each myVar
FTP
endfor

How can I achieve this.. I can use either of the loop options (Do, While or For), and the variable is under our control,
We can use Comma Seperated, or, If its not possible even XML would be fine..

Just need a way to manipulate loops using variables.....
smandadi
 
Posts: 17
Joined: Mon Jun 14, 2010 3:58 pm

Re: String to RowSet to use in a Loop

Postby Support_Duane » Tue Jul 20, 2010 3:20 pm

GoAnywhere does not currently (as of July 2010) allow string operations on variables, so you cannot pass in a string and use pieces of it in your loop. What you can do, however, is to place the values into separate records in a file, (any of the file types that GoAnywhere can read - Database, CSV, Fixed Width, Excel, XML) read that file, then set up a For Each loop based on the value in each record.
Support_Duane
Support Specialist
 
Posts: 65
Joined: Thu Mar 05, 2009 3:49 pm


Return to Community Forum

Who is online

Users browsing this forum: No registered users and 3 guests