View previous topic :: View next topic
|
Author |
Message |
genyboy
New User
Joined: 24 Apr 2006 Posts: 2 Location: bahrain
|
|
|
|
Hi.
I generate an input file from mainframe that is FTP-ed to a Windows server
for processing. Before processing in Windows Server, we manually run an
MD5-utility embedded in a DOS .bat program that would update the said
input file by creating a checksum record at the bottom of the file.
The input file is then ready for processing by the application in the Windows server. The checksum record is validated by the application before it proceeds to process the file.
I would like to check if there is a way to trigger a .bat program
while MF and Windows server are connected via FTP service so that
the manual trigger of .bat program can be automated. If no,
kindly suggest any work around.
Thanks. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
FTP is a File Transfer Protocol -- so it does not support execution of programs on the remote server. Under z/OS, you can use REXEC to execute a program on a remote server -- check with your site support group about the availability of REXEC at your site. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or your scheduling software may have the functionality to do this immediately following the FTP of the file |
|
Back to top |
|
|
genyboy
New User
Joined: 24 Apr 2006 Posts: 2 Location: bahrain
|
|
|
|
Thanks for the quick replies.
Shop has no scheduling software as of now so this is not viable
As for REXEC, I am new to it and so not sure if it would work...
When I gave TSO REXEC in my MF system I got the following in my screen. So this could mean my mainframe system is REXEC ready. My doubt is, does the Windows Server have to have REXEC app installed too?
EZA4726I Usage: rexec -? -d -b <tab> -l <usr> -p <pwd> -n -m -s <port> -t <fn
> Fhost cmd
EZA4727I options: -
EZA4728I -? display this message.
EZA4729I -d turn on debug tracing.
EZA4814I -m prefix '09'x to machine control output.
EZA4811I -b <tab> specifies tab value,
EZA4813I valid range 1 - 12 (default 1).
EZA4730I -l <usr> specifies remote userid.
EZA4731I -p <pwd> specifies remote password.
EZA4732I -n prevent automatic login.
EZA4733I -s <port> specifies server port (default 512).
EZA4802I -t <fn> specifies translation table name.
EZA4734I Example: rexec -d -l guest -p guest hostname ls
***
Do we have a sample code/jcl here using REXEC?
Sorry for asking too much help.... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Does google not work on your machine ?
If you issue the command via TSO then search the forum for batch TSO processing, there are loads of examples available |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
If you are up to it, write a rexx sockets exec that will open a Telnet session and execute your command(s). |
|
Back to top |
|
|
|