Application Development and Automation 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: 
Read only

copy/move file on application server

Former Member
0 Likes
1,103

Hey guys,

is there an easy way to copy/move a file from one directory on application server to an other directory? I know i could use the commands OPEN DATASET and so on. Is there an other way to do this via a function module?

thx,

M.

Moderator Message: Please search before posting, this has been discussed many times in the forum. All points unassigned

Edited by: Suhas Saha on Aug 13, 2011 10:28 PM

Hey guys,

is there an easy way to copy/move a file from one directory on application server to an other directory? I know i could use the commands OPEN DATASET and so on. Is there an other way to do this via a function module?

thx,

M.

Moderator Message: Please search before posting, this has been discussed many times in the forum. All points unassigned

Edited by: Suhas Saha on Aug 13, 2011 10:28 PM

2 REPLIES 2
Read only

AnjaneyaBhardwaj
Contributor
0 Likes
579

Hi ,

As you know about the open dataset way of doing this ...You need another way and that will be as mentioned in the link below .....

[Copy one file to another on application server |;

Hope it helps ....

Thanks,

Anjaneya

Edited by: Anjaneya Bhardwaj on Aug 13, 2011 1:02 PM

Read only

Former Member
0 Likes
579

Hi,

You can use the below statement (For more details, refer F1 help).

Open dataset: Creates/Appends data to a file on application server

Read dataset: Reads the data from the existing file on application server

Transfer: Writes line by line on to the application server file.

Close dataset: Closes the file on application server

Delete dataset: Deletes the existing file on the application server.

Or check: CG3y and CG3Z transaction

Regards,

Shiva