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: 

data sets?

Former Member
0 Kudos

Hi

We will use open dataset <dataset name> input/ output in text mode encoading default.

Can anyone tell me we will write INPUT or OUTPUT what is meaning of that. What is INPUT for & what is OUTPUT FOR?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

INPUT is for when you're reading the file into the program, OUTPUT is for when you're writing data from the program to the file.

And all of this is explained in the SAP help for the command OPEN.

Regards,

Nick

3 REPLIES 3

Former Member
0 Kudos

Hi,

INPUT is for when you're reading the file into the program, OUTPUT is for when you're writing data from the program to the file.

And all of this is explained in the SAP help for the command OPEN.

Regards,

Nick

bpawanchand
Active Contributor
0 Kudos

Hi

INPUT or OUTPUT

OPEN DATASET FOR OUTPUT this statement means the file is opened in write mode that means you can edit or change the contents in the fiel.

OPEN DATASET FOR INPUT this statemetn means the file is opened in read only mode that means you can only read the data from teh file but not change or write.

Regards

pavan

Former Member
0 Kudos

HI,

When you are opening dataset in OUTPUT mode then its opened in WRITE MODE.

And when you are opening in INPUT MOde then then its ready for READ MODE.