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: 

how to cretae two flat file with a single program

Former Member
0 Kudos

Hi All,

I am trying to creating to two files on the application server using the open data set and close data.

lets say the first file is file1 and second file is file2. but when i go to the Tcode AL11 and check the file only second file is appears there.

its may be coz i m using two times this open data and close data in my program.

can u tell help me howz these two file is appears on the application server i.e AL11.

its very urgent pls help me.

Thanks!

Vipin

6 REPLIES 6

Former Member
0 Kudos

Hi,

There is no problem in creating the multiple files.

check the name sthat you used for this.

I think you are givign the same file name both times.

Check once. if the problem is not solved please give the code that you used for this.

Regards,

Sasi

0 Kudos

no man i m using different file names

0 Kudos

and its taking only that file name whatever we gives in last open dataset and close dataset with file name.

0 Kudos

Hi Do one thing,

Start ur program in debugging mode complete first open data set and close data set and then go and chekc whehter the file got created or not and also check the sy-subrc values when u r doing ur open data set.

if the first file is not done then no file will be in AL11 including ur new file name.

In this way you can find whether the file got created or not.

check that u r giving differnet file names fifferently otherwise it will be keep on overwriting the existing one.

Regards,

sasi

former_member188685
Active Contributor
0 Kudos

Vipin,

You might be using the same filename or first fileis not created , check it. check the sy-subrc after open dataset and close dataset.

That will give some input.

Show the code. are you using the perform by any chance.

Regards

Vijay

Clemenss
Active Contributor
0 Kudos

Hi vispin,

post your code, we'll find error.

Regards,

Clemens