Hi Experts,
We have two files sender communication channel,one file sender channel should pick files from NFS folder if file size is <= 1kb.Other file sender channel should pick file if file size is >1kb.
Can you please help me with unix command for the above logic.
Appreciate your help on this.
Thanks.
Hi Mohan!
At first it worth mention that if you need to pick up file according to its size OS script won't help you much as it works not before adapter picks the file but before it's transferred to messaging system.
Why do you use two sender channels? If you have to determine receiver by the file size, you can do it in receiver determination by enabling ASMA attribute "Source file size" in sender channel and using so-called Context Object in receiver determination condition. Or what is your purpose?
Regards, Evgeniy.
As Evgeniy said, you can use Context Object fileSize in the Receiver Determination to handle this.
Use two Receiver BC/single one as per your requirement in Receiver Determination and use condition as per your requirement.
For one fileSize > 1kb and for one <1kb
Thanks,
Apu
Add a comment