Home > Archive > Cobol > October 2005 > Mainframe JCL kicks off VB program
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mainframe JCL kicks off VB program
|
|
| Teresa 2005-09-29, 7:55 am |
| Hi,
Does anyone know how to execute a VB program from JCL in mainframe. We
have been using FTP to download and upload files. However, this time,
we need to execute a program that is in a server after certain job in
mainframe finishes.
Any other ideas to accomplish what we wanted to do is greatly
appreciated.
Thanks,
Teresa
| |
| Bernard Giroud 2005-10-01, 7:55 am |
| Teresa a écrit :
> Hi,
> Does anyone know how to execute a VB program from JCL in mainframe. We
> have been using FTP to download and upload files. However, this time,
> we need to execute a program that is in a server after certain job in
> mainframe finishes.
> Any other ideas to accomplish what we wanted to do is greatly
> appreciated.
>
> Thanks,
> Teresa
>
Two ideas in order a ascending difficulty:
o rsh if your VB program doesn't use forms.
o FTP for a sync file that your VB or a VBscript program waits for.
--
Bernard Giroud
Open Source COBOL Tools Developer
| |
| Peter Lacey 2005-10-01, 6:55 pm |
| Bernard Giroud wrote:
> =
[color=darkred]
> Teresa a =E9crit :
We[color=darkred]
,[color=darkred]
[color=darkred]
Don't understand. Why should a VB program be any different from any
other? =
=
PL
| |
|
|
Teresa wrote:
> Hi,
> iam studing mainframe can u give some information abt jcl,cobal,vsam,
>can u tell which book has 2 follow for all jcl ,vsam and cobal
>this will help me can u tel me
| |
| Teresa 2005-10-03, 6:55 pm |
| Hi Bernard,
Thanks for your respond. The VB doesn't use forms. Also, we are already
using your second idea - FTP for a sync file... I prefer no
trigger/sync files and program waiting for the trigger/sync file.
What I wanted to do is have a JCL and one of the steps is to execute
FTP which sends a command down to the server that would kick off a VB
program in the server. I've checked the FTP command and I don't see
any 'exec' command that I could use like 'exec program1.exe'. This way
I can avoid having programs in the server executing and waiting for
something from mainframe. I this clears things out a bit.
Thanks,
Teresa
Bernard Giroud wrote:
> Teresa a =E9crit :
> Two ideas in order a ascending difficulty:
> o rsh if your VB program doesn't use forms.
> o FTP for a sync file that your VB or a VBscript program waits for.
>=20
> --=20
> Bernard Giroud
> Open Source COBOL Tools Developer
| |
| Teresa 2005-10-03, 6:55 pm |
| Hi Peter,
Apologize for not being clear. Actually, I want the mainframe thru FTP
commands contols the execution of the program in the server. I guess,
my question should be is, do you know how to execute a program using
FTP command?
Thanks,
Teresa
| |
| Larry Kahm 2005-10-03, 6:55 pm |
| Teresa,
Your best approach would be to talk with someone in your mainframe
Scheduling or Automation group. They would have the knowledge of your
shop's practices and procedures and the tools necessary to do what you want
to do.
They might even ask you some really important things, like: who tested the
program, what group owns the server, what kind of schedule should your
program run on, what are the contingency plans if the program fails, and the
like.
Larry Kahm
Heliotropic Systems, Inc.
"Teresa" <tpthai@pepco.com> wrote in message
news:1127993578.146170.103750@g14g2000cwa.googlegroups.com...
> Hi,
> Does anyone know how to execute a VB program from JCL in mainframe. We
> have been using FTP to download and upload files. However, this time,
> we need to execute a program that is in a server after certain job in
> mainframe finishes.
> Any other ideas to accomplish what we wanted to do is greatly
> appreciated.
>
> Thanks,
> Teresa
>
| |
| Richard 2005-10-03, 6:55 pm |
| > I want the mainframe thru FTP
> commands contols the execution of the program in the server.
FTP is File Transfer Protocol and you need to use something like
'Remote Execution Protocol'.
If it was a Unix server you would use rsh (Remote shell) or ssh (secure
shell). Regardless of what it is called it will require some sort of
server program (daemon or service) on the server to talk to to get this
done. FTP protocol is handled by ftpd or similar server program, HTTP
is handled by httpd (Apache or IIS). If you want to send a message to
the server to get an program executed then that server must be running
a daemon that will take your request, validate it and execute it. You
need to find out whether the server is running such a daemon and then
find out how you would send it messages.
Examples of remote execution daemons for Windows servers are:
MKS Toolkit: http://www.mkssoftware.com/docs/man1/rexecd.1.asp
WinRSHd: http://www.winrshd.com/rshdproject.htm
You may already have something like this installed. Then it is only
necessary to write a client program, or find one, for your environment
that will use the correct port, observe the correct protocol and do
encryption if required.
Solutions that I have used for Windows include having a simple program
that spends most of its time sleep()ing so that it uses minimum
resources and whenever it wakes it looks for files in a specific place
and executes programs depending on what is in the file. It is an easy
matter to use ftp, ssh, http, network or other to get a file into that
location.
Of course it may also be a simple task for anyone else to get files
into that directory and have malicious code execute, so it is a huge
security gap.
| |
| Joe Zitzelberger 2005-10-04, 7:55 am |
| In article <1128345283.205106.197290@g47g2000cwa.googlegroups.com>,
"Teresa" <tpthai@pepco.com> wrote:
> Hi Peter,
> Apologize for not being clear. Actually, I want the mainframe thru FTP
> commands contols the execution of the program in the server. I guess,
> my question should be is, do you know how to execute a program using
> FTP command?
>
> Thanks,
> Teresa
You might be able to do something with the "SITE" command. This command
allows ftp servers to offer customized services.
The downside is, you need to write exits or extensions to your ftp
server.
| |
| Charles Godwin 2005-10-07, 6:55 pm |
| I don't think you can start a job using the native FTP server in
windows. I checked the host SITE commands list and it doesn't look
good. I know the MVS FTP Server supports all kinds of job submital and
retrieval commands but alas, not the windows FTP server.
I think the best you can do is have a job on the Windos server that
starts up every nn seconds, minutes or hours and checks for the
exisitance of a file and let it fire up the VB program.
look at the AT command in Windows command prompt (cmd.exe) for
primitive job scheduling.
| |
|
| Hi.
I am not a big mainframe expert, but if you have IIS server with VB
program on it (as ASP page), you can use any http-enabled services to
run whatever you want (CICS, IMS and more can connect other servers
using HTTP protocol). So, i.e. you can use:
http://youserver/vbprogram.asp?action=action1 to perform 'action1' in
you PC.
|
|
|
|
|