# Program Natural accessing FTP

**URL:** <https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics\
**Created:** [June 28, 2012, 10:26pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840 "2012-06-28T22:26:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geovani\_Silva1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/geovani_silva1/32/513_2.png) [@Geovani\_Silva1](https://techcommunity.softwareag.com/u/Geovani_Silva1)\
**Post date:** [June 28, 2012, 10:26pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/1 "2012-06-28T22:26:17Z")

</div>

Good Afternoon!

I need to know if I can write a program natural to access FTP.

Thank You,

Geovani

---

<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:** [June 28, 2012, 10:36pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/2 "2012-06-28T22:36:11Z")

</div>

First, and important, question: what operating system are we talking about here ?

---

<div class="post-metadata">

**Author:** ![Geovani\_Silva1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/geovani_silva1/32/513_2.png) [@Geovani\_Silva1](https://techcommunity.softwareag.com/u/Geovani_Silva1)\
**Post date:** [June 28, 2012, 10:39pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/3 "2012-06-28T22:39:42Z")

</div>

zOS

---

<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:** [June 28, 2012, 10:50pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/4 "2012-06-28T22:50:36Z")

</div>

Ok, what environment ?

- Batch
- COM-PLETE
- CICS
- TSO

Does your site have Entire System Server available ?  
If yes, the documentation for the [SYSTEM-COMMAND view](http://techcommunity.softwareag.com/ecosystem/documentation/natural/npr351mfr/ug/ug_vd_systemc.htm) has an example on  
how to trigger a FTP.

---

<div class="post-metadata">

**Author:** ![Geovani\_Silva1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/geovani_silva1/32/513_2.png) [@Geovani\_Silva1](https://techcommunity.softwareag.com/u/Geovani_Silva1)\
**Post date:** [June 29, 2012, 2:21pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/5 "2012-06-29T14:21:40Z")

</div>

The environment is CICS.  
I need to do through a natural program for AJAX, and for a specific situation, to check whether a file exists on a server on the low platform.

---

<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:** [July 10, 2012, 1:36am UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/6 "2012-07-10T01:36:43Z")

</div>

So you are using the WebIO CICS adapter to act as a backend for Natural for Ajax ?

No, there is no direct way of running an FTP session from within CICS, and it’s not a  
particularly good idea either, the usual way of doing this is submitting a batch job  
for the FTP.

Is there no better way, like a RPC call to the server, asking for the file status ?

---

<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, 3:02pm UTC](https://techcommunity.softwareag.com/t/program-natural-accessing-ftp/100840/7 "2021-04-02T15:02:06Z")

</div>

Closed on April 2, 2021, 3:02pm UTC


