execute jobs by FTP

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 :frowning:

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

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) rather than the Natural forum.