cancel
Showing results for 
Search instead for 
Did you mean: 

Using sender file adapter to read the most current file

Former Member
0 Kudos

Hi,

in my sender file adapter , i have to read the latest file- all files in the source directory are named as <filename><timestamp>.txt . I need to read the file with the latest timestamp (i.e. the most current file )

How do i configure this using file adapter.

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sreeram,

thanks for the answer- but i found that the option can only be used with NFS transport protocol. what if i am using FTP ?

alos, by date option means- files are processed according to their time stamp in the file system, starting with the oldest file.

However in my case i only want to read the latest file and ignore the older files.

Thanks

prabhu_s2
Active Contributor
0 Kudos

i think in this case u need to go for file adapter module

Former Member
0 Kudos

then wirte a OS leve script in our file adapter .

Former Member
0 Kudos

Hi guys,

do you have any sample code for the same- ?

wud b a lot of help

thanks

Former Member
0 Kudos

OS level scirpt is wirte batch file if it is unix system we get is easily if it is in windows i am not sure which command to use

Former Member
0 Kudos

usethe option bytime