Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
- Posts: 4
- Joined: Fri May 17, 2013 1:17 pm
I'm trying to read a single variable out of a file then prefix a filename with that variable., but I'm having trouble getting the variable set correctly.
Filename IDNUM contains the string "12345". I'm trying to rename a file names REPORTFILE, to 12345.REPORTFILE.
Here is what I've tried so far that hasn't worked.
setVariable with an input file: When I use this method, the variable is set correctly but when I rename the file a "?" appears at the end of the variable.
readFlatFile/readFixedWidth: I can get the the function to read the file, but when I try to rename/copy the file I get the following error
An unexpected error occurred. Invalid cursor position: BEFORE_FIRST Original expression: ID.
- Posts: 592
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
Post or send us a copy of your XML so I can see what you have. Your first bit of setting a variable should work. Once that variable has been assigned, it's just a matter of renaming the file.
Get me a copy and let's see where we can help you get this going...
Lead Solutions Consultant
Return to “Community Forum”