08-29-2019 12:50 AM
Hi,
I have a requirement to add header and trailer records to a text file before writing to a server.
Can any one guide me how to achieve this functionality.
Thanks,
08-29-2019 03:06 AM
@spunyala use copy snap then connect header snap in one output view and use tail to another outputview of copy. Then use union snap and write to a file.
08-29-2019 07:15 AM
Can you give a concrete example of what you’re trying to do? Do you have a FileReader snap that is reading the text file and then you want to add the header and trailer around the stream? For example, if the text file contained:
Hello, World!
You want the output to look like the following:
BEGIN Header
Hello, World!
END Trailer
How big is the file?
08-30-2019 01:58 AM
File may have around 11 k records…
08-30-2019 01:57 AM
Hi ,
I am reading the data into text file from Successfactors and writing to the server.
So i need to write the data as below.
H(Header) which contains xxxx|yyyy|current date
Data records …
T(Tail record) which contains xxxx|total data records count
Thanks,