on 07-20-2007 1:26 PM
Hi every SDNer.
I want to get special file. for example like PJ<today>_return.dat
Well, to paraphrase Marx, One folder has too many files. but I want one file in that folder.
The rule is simple. if today is 20/07/2007 then I get the file as "PJ20070720_return.dat".
How can i configuration File Sender Adapter?
I think i mis read this as File Receiver and posted something earlier.. Sorry... But do u want this in the File name in the output or this in the Sender to pick this file??
Message was edited by:
Sanjo Eapen
Message was edited by:
Sanjo Eapen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as far as I remeber it is possible -- you just have to specify it in file adapter properties. Not sure if there are chance to generate name from date or so, but at least to select all what contains 'PJ' shall be possible.
i even found it in help -- http://help.sap.com/saphelp_nw04s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm -- check chapter about file name
and just hint -- you can remove processed files too by copying them in subdirectory.
BR, Artem
remember points
Message was edited by: Artem
Artem Ruzak
Dont have an XI system in front of me, but if I recall correctly, your options are pretty limited. The list of parameters in Advanced Selection for Source File does not include a date Better selection parms with the receiver channels.
As such you may have to resort to writing a script on the OS that will do the following every minute... (basically run it more frequently than your channel)
- look in that directory through all the PJ* files containing date = 'today'
- rename the file to REAL_PJ_..... (for example)
In your channel, pick the file REAL* and archive accordingly so it's not picked again by your script.
If you find alternatives via cchannel - publish your results.
sincerely,
--NM
Can you rename files in the folder?
If so, when your cchannel picks up the file real_pj*.dat
Rename it to real-done_pj....
In your script skip all of today's files that have done and set some flag to true once you find a file.
Of course if its one date file per day - no issue there.
sincerely,
--NM
ps: if you find alternatives strictly via cchannel - publish your results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Specify the name of the file in the file adapter and Shall i know whether you want to read the generated files dynamically
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.