02-24-2010 6:45 AM
Hi,
Im using DATASET for file handling. I need to write the files into appln server multiple times during a single program execution. So, here im using DATASET FOR APPENDING.. I need one clarification, i.e.
I have two options:
1. I have opened this file once and trying to write multiple data into this file (OR)
2. Opening this file for each batch process and writing data into this file.
Can anyone suggest me which one is more feasible.
thanks
Rohith
02-24-2010 6:50 AM
Hello,
Your first option is the correct one, if you want to append the newly written data each time. For this you will be using OPEN DATASET FOR APPENDING . The second option will not work as when you open the dataset each time and write into it with transfer statement, the old data will be replaced and not appended.
Vikranth