Skip to Content
0

Adding Timestamp to the file after archiving using SFTP sender adapter

Apr 05 at 08:35 PM

66

avatar image
Former Member

Hi

I have add timestamp like "yyyyMMddHHmmss" with out any spaces or special chars while archiving the file using SFTP adapter in pass through scenario.

when i use %TS it is adding like "yyyy-MM-dd_HH-mm-ss".

is there a way we can add a time stamp as per my requirement in SFTP adapter with out UDF. Please provide your inputs.

Thanks

Laxmi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jan Holakovsky Apr 09 at 09:19 AM
0

Hello, according to note 1876228 %TS can't be modified. I would try running OS command after message processing to rename the file properly.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Jan,

Appreciate your reply, i have to archive the file in SFTP path it self not on NFS, does OS command support support to do this on SFTP path. ?

Thanks.

0

If it's directly on the SFTP server, than I suggest you create a rename script on your PI OS and run this script as a OS command, since it probably won't be a simple single line command. Check this guide - https://wiki.scn.sap.com/wiki/display/XI/SAP+XI+File+Adapter+OS+Command+Line+Feature

for SFTP it will be similar, only the connection to SFTP will be different.

0