Hi SDNites,
I have to split file into multiple file based on no. of records present in input file. Here Footer sent in sender file is to be mapped to last generated file in the receiver.
To achieve this functionality I have written an UDF (All values of a queue) which identifies my last file. After this used ifWithoutElse and the same is also giving the output as expected but when mapped to the receiver strutcure values are displayed only in first generated file.
Ex:
Header
Item 1
Item 2
(For discussion lets say receiver file should not contain more than 2 item records)
Header
Item 1
Item 2
Item3
Item 4
Footer
Expected receiver files
File 1
Header
Item 1
Item 2
File 2
Header
Item3
Item 4
Footer
After UDF is executed and queue shows, (Here 1 and 2 are theno. of files which will be generated. I obatined these with previous steps in message mapping)
1 False
2 True
IfWithoutElse queue displays
Suppress
[]
Receiver mapped field
Suppress
[]
When execution o/p is seen value is seen in first file generated.
Regards,
Abhi