# Need a hint: How to build a FTP-Client

**URL:** <https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples, Natural-on-Windows-Unix\
**Created:** [October 19, 2009, 1:13pm UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535 "2009-10-19T13:13:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristianHeld](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/christianheld/32/138_2.png) [@ChristianHeld](https://techcommunity.softwareag.com/u/ChristianHeld)\
**Post date:** [October 19, 2009, 1:13pm UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535/1 "2009-10-19T13:13:53Z")

</div>

Hello!

We have a C/S System.  
The Client is build with Natural for windows, the Server is MF-Natural.

If a file csv file has to be transferred to the client we currently use a  
sequence of RPC-Calls to do the job. This technique works, but if  
the the file is quite big, the number RPC-Calls is very high.

If we establish a FTP-Server for this job, then we need a FTP-Client  
component. Is there any hint how to build a FTP-Client with Natural for windows?

Any Feedback is welcomed.  
Christian

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [October 19, 2009, 3:55pm UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535/2 "2009-10-19T15:55:26Z")

</div>

On Windows-Side you got a simple ftp-client. On command line it works like that:

```auto
ftp -s:test.txt
```

While test.txt contains (for example):

```auto
open hostname
username
password
get file.txt
bye
```

So you can write text.txt as a natural-workfile and start the ftp-command using SHCMD.

If you want Windows to be ftp-server use IIS Manager (comes with Windows Server-Editions).

---

<div class="post-metadata">

**Author:** ![ChristianHeld](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/christianheld/32/138_2.png) [@ChristianHeld](https://techcommunity.softwareag.com/u/ChristianHeld)\
**Post date:** [October 19, 2009, 8:20pm UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535/3 "2009-10-19T20:20:46Z")

</div>

Hello Matthias.

Thx for the fast reply and the hint. I will do some tests with this.

As far as I understand this hint, the execution of the file transfer  
will work “as a black box”.

The current solution (based on a sequence of RPC-Calls) allows  
us  
a) to feed a progress-bar,  
b) to “count down” the remainig records (as we know the number of  
records)  
c) display the transfer time

This kind of fancy information shortens the “felled” transfer time for  
our users. Based on this the idea was to develop a native FTP-Client.

Nevertheless, thanks for the hint.  
Christian

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [October 20, 2009, 8:10am UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535/4 "2009-10-20T08:10:42Z")

</div>

what version of EntireX are you using?

Are you either using Adabas 8 SVC on the mainframe or TCP/IP for communication? If so, you might try to use larger buffers and fewer messages.

With dynamic variables in Natural, you can send/receive messages up to 2gb in size, allowing you to reduce your number of RPC calls dramatically. (Of course, you need sufficient memory on both the client and the server to manage very large messages).

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [October 20, 2009, 3:04pm UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535/5 "2009-10-20T15:04:18Z")

</div>

> [@ChristianHeld](#):
>
> As far as I understand this hint, the execution of the file transfer will work “as a black box”.

Windows’ ftp-client is not very comfortable. There are some modern (s)ftp-Clients (like on Linux) showing a progress bar etc. during download.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/need-a-hint-how-to-build-a-ftp-client/91535/6 "2021-04-02T14:57:38Z")

</div>

Closed on April 2, 2021, 2:57pm UTC


