Hello Experts,
My query is around using append mode in file receiver. Though the requirement is not complex, i am looking for a best solution with minimum maintenance.
Requirement - Data extracted from ECC will be sent to PI via proxy. PI needs to create a single file using FCC.
Criteria - Data is huge, hence will have to send it in batches
- In PI will have to use Append mode while creating a file.
- The file has to be created in temp directory while being appended by PI, as the application which is pulling the file may pickup haif written file.
Solution - I can use additional field in structure to get the total count of batches and the currnet batch number. Based on this i will know when the last batch has arrived and accordingly i will have file and directory path details added in the structure. I will have to use variable substitution in OS command to transfer the file from temp dir to main dir. Using FCC i can ignore the addtional file name and dir path fields while creating file.
My Question: Is there a better way of doing this? Can the OS script writting be avoided?