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.