Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

File handling with DATASET

former_member642890
Participant
0 Kudos
63

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

1 REPLY 1

Former Member
0 Kudos
31

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