开发者

Triggering a JOB in Mainframe after FTP and FTP back the response

The below is my requirement. The user uploads a csv/text file to Web Application. The Web Application FTPs the file to a Mainframe server. This action has to trigger a JCL / Service. The Mainframe processes the uploaded file and FTPs the response to a location accessible by the Web Application. The response is shown in the Application.

  1. Is the requirement feasible ?
  2. Can FTP trigger a JOB / Service in Mainframe after file transfer?
  3. Can a Main开发者_如何转开发frame JOB / Service FTP the response to an external system ?


You can use the "QUOTE SITE FILETYPE=JES" to submit a job to the internal reader on the mainframe. This lets you directly write a job stream and start it running.

Once the job completes, you can read the spooled output, also using FTP. The output datasets, IIRC, are created with the job number in the form "JOB#####.n", where n is the dataset number starting at 0.

Your requirement is very feasible, in fact, it is also very easy to accomplish with just some simple JCL and FTP commands.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜