cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

To add Header & Trailer records

spunyala
New Contributor

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,

5 REPLIES 5

Supratim
Contributor III

@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.

tstack
Former Employee

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?

File may have around 11 k recordsโ€ฆ

spunyala
New Contributor

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,