View previous topic :: View next topic
|
Author |
Message |
venkata_naresh
New User
Joined: 16 Feb 2007 Posts: 2 Location: Markapur
|
|
|
|
Hi, I have a requirement to copy data from one PS to another PS by adding a dynamic header and trailer information. my input PS consists of around 200000 records. I hate to read one by one and write to output file just to insert extra header and trailer.
I will really appreciate any suggestion. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
PS means "physical sequential", which means you cannot add a header or trailer without reading the entire file and writing it out to another file.
Use plenty of buffers to minimize processing time but expect to read and write every record in the file to achieve your desired result. |
|
Back to top |
|
|
|