on 07-18-2013 9:05 PM
I am using Dynamic FIle Configuration for my interface both for File Name and DIR. ECC send meassages in mulitple chunks and I am creating the file in append mode.
The last message that ECC send has a flag set so that I can trigger another file channel to change the temp file name to permanent file name. This channel also has the same file name and dir name through Dynamic Config.
The command I am using to rename the file
cmd.exe /C ren %F FOGPM03_ FOGPM03_A
However it does not do anything.
Hi ,
Please check the below blog
Thanks,
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I rename the file without using script. I want to put a command directly in the channel not by invoking a script.
As we are on AIX, I am using the following:
mv command instead of ren or rename.
I am using mv %F %F.FINAL to append FINAL to the existing file name when I receive the last message. Now everything works as expected. Now the only frontier is how to add the timestamp to this.
Another thing is. Like SAP provides %f and %F for filenames. Do we have anything for directory path as well like %dir or %d?
You can follow this link for appending timestamp to the filename..
http://xmodulo.com/2013/02/how-to-append-current-date-and-timestamp-to-filename-in-shell-script.html
>Another thing is. Like SAP provides %f and %F for filenames. Do we have anything for directory path as well like %dir or %d?
IMO, answer is no
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.