Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2017, 03:23 PM
avinash.lkr avinash.lkr is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default Sumbit Mainframe Batch Job through Delphi Windows Application

Hi,

We have a requirement to submit mainframe jobs from Delphi applications, we have tried the below options to achieve that,

Using TIdFTP:

1. We have used TIdFTP component’s “do comment” from Delphi to get Job files from mainframe
2. We have used ASCII mode as well as Binary mode on different times to get job or JCL files.
3. But sometimes we were able to get the job files in the debug mode but it’s not retrieved fully.
4. We were not able to download/get file name list completely.

The below is the snippet of the code we used,

FTPconnection.Host := “”;
FTPconnection.UserID := “”;
FTPconnection.Password := “”;
FTPconnection.Disconnect;
FTPconnection.Connect;
Mode = ASCII or Binary;
FTPconnection.Docommand(Custom command to get jcl file);
FTPconnection.download(JCLfiles);
FTPconnection.Disconnect;

Using Windows commands:

1. Also we have tried using windows commands to get JCL files from Delphi code.
2. Using “PUT” command, but when we are trying to use windows commands we are not able to connect to Mainframe to get files.
3. Also we have tried through .bat file, that also didn’t worked out.

Apart from that we have tried changing the FTP and windows commands to get the files but nothing worked out. Please help us to submit mainframe jobs from Delphi windows application.

Note: We are using Delphi 10 Seattle version.
Reply With Quote
  #2  
Old 07-25-2017, 10:04 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,199
Default

and what is that magic command? (Custom command to get jcl file)

Sounds like you're using a command that doesn't wait to terminate, resulting in a partial download (since the command is still filling the jcl)

NB: I'm not familiar with Mainframe Batch Jobs, but incomplete is usually a threading/timing issue
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 09:12 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.