on 03-14-2011 10:30 AM
Hi,
I need to create a file with the name as ZZZCCYYMMDDHHMMSS.txt
where ZZZ is the constant
CCYYMM is the date of file creation
DDHHMMSS is the time of file creation.
There MUST NOT be any spaces in the file name
Eg ZZZ20110314152530.txt
I am using the Receiver File Adapter with Cntent Conversion. I tried using Add Time stamp option. But that does not sattisfy the required Naming conventions for file name.
Any help would be appreciated.
Regards
Harry
use dynamic configuration and form the file name in the mapping itself.
Standard time stamp option will not help you in this case.
/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Follow shabarish suggested blog as well as the below one which Combines three different aspects of PI (ASMA, AF Module and variable substitution) in one shot
/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
Thanks,
Hi,
IF dot is okay between constantTimeStamp.HHMMSS. then try
Target filename as ZZZ.txt (ZZZ is a constant what you want)
and File Creation with Time Stamp .
File will be generated like ZZZ20110314.152530.txt
Otherwise use dynamic configuration as suggested above.
Regards
Aashish Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harish,
Your requirement is to generate a dynamic file name @ target side right??
If so best option is go for UDF. (I hope you heard about UDF already)
There is something called ASMA... (check it out)
Have a look @ following. So that you can get some Idea about ASMA
In Google Type : dynamic file name in Pi
Select 1st link- sap technical
After this try to write own UDF to get desired file name @ target side..
Thanks,
Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using mapping then it can be done by either DynamicConfiguration method or Variable Substitution method. Just search on sdn you will find lots of thread with same requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.