# execute jobs by FTP

**URL:** <https://techcommunity.softwareag.com/t/execute-jobs-by-ftp/90438>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 15, 2009, 3:12pm UTC](https://techcommunity.softwareag.com/t/execute-jobs-by-ftp/90438 "2009-06-15T15:12:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mun1ek\_2](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mun1ek\_2](https://techcommunity.softwareag.com/u/mun1ek_2)\
**Post date:** [June 15, 2009, 3:12pm UTC](https://techcommunity.softwareag.com/t/execute-jobs-by-ftp/90438/1 "2009-06-15T15:12:50Z")

</div>

Hello,

I’m working on small application in php to running jobs on mainframe. In that application i send raw ftp commands to server. Everything works, but ftp STOR command not ☹

SITE FILETYPE=JES  
200 SITE command was accepted  
SITE JESOWNER=XX1  
200 SITE command was accepted  
SITE JESJOBNAME=\*  
200 SITE command was accepted  
SITE JESSTATUS=ALL  
200 SITE command was accepted  
STOR job  
…  
In that moment i wait for putting “job” file and nothing happens.

When i’m using windows ftp command line client and (build-in) send command everyting works:

ftp\> literal site FILETYPE=JES  
200 SITE command was accepted  
ftp\> literal site JESOWNER=XX1  
200 SITE command was accepted  
ftp\> literal site JESJOBNAME=\*  
200 SITE command was accepted  
ftp\> literal site JESSTATUS=ALL  
200 SITE command was accepted  
ftp\> send job  
200 Port request OK.  
125 Sending Job to JES internal reader FIXrecfm 80  
250-It is known to JES as JOB04668  
250 Transfer completed successfully.  
ftp: 64d bajt

---

<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:** [June 16, 2009, 2:22am UTC](https://techcommunity.softwareag.com/t/execute-jobs-by-ftp/90438/2 "2009-06-16T02:22:13Z")

</div>

are we comparing the same things?

Your example that works is using “send job” as the last command, but the one that doesn’t is using “stor job”.

In any case, since the FTP commands are not Natural-related, you may get better input from a general mainframe forum (eg [ibmmainforum.com](http://ibmmainforum.com)) rather than the Natural forum.

---

<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/execute-jobs-by-ftp/90438/3 "2021-04-02T14:57:09Z")

</div>

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


