It's hard for me to know your silly mistake when I can't see your job. What you should be able to do to make it work is have a job parameter with the full path to the file to create - the one without the date. It looks like you've called that FILE, so both the Sequential File stage and the After Job subroutine should use #FILE#. The routine will take the file and rename it with the current date formatted properly I assume. None of this silly #testsubroutine# stuff.
The other trick here is the filename cannot include the extension for the rename to work correctly. If you are comfortable doing this, drop it from the parameter value and hard-code the ".txt" extension in the Sequential File stage, much like it is hard-coded in the posted routine.
I believe you'll need to modify the routine to pull the filename from the path to it. From what I recall, the DOS rename command wants the full path to the original file, but only the new filename on the other side. For example:
Code: Select all
ren /a/b/c/test.txt test_08152006.txt