View previous topic :: View next topic
|
Author |
Message |
Rafael Longo
New User
Joined: 21 Jul 2007 Posts: 33 Location: Campinas, S?o Paulo, Brazil
|
|
|
|
Hello, everyone,
Is there a way to start (submit) a mvs job from within a Unix shell script? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you post much more complete details.
From the way you've posted the question, "maybe" comes to mind as an answer. |
|
Back to top |
|
|
Rafael Longo
New User
Joined: 21 Jul 2007 Posts: 33 Location: Campinas, S?o Paulo, Brazil
|
|
|
|
Hi, Dick. Ok. Let's see:
I have a process, which has a portion that runs on a unix box.
At the end of it, the unix ksh script transfers the file to mainframe, creating a dataset. This is where the mainframe portion of the process should begin.
I would like to start a job on mainframe right after transferring the file. Can I do it from the same unix ksh script?
Let me know if this is enough...
Thanks,
Rafael |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Some possible scenarios come to mind:
1. Make a call to an object in your job scheduling system from the shell script, telling it to schedule a job on the mainframe host system.
2. Have a mainframe scheduling system schedule that uses a dataset trigger. One you upload the file and meet the requirements for the dataset trigger, the job is scheduled.
3. Use a file-watch product on the mainframe host which can trigger a scheduler activity when a particular activity is recorded.
4. Use FTP to either "put" JCL from the Unix system to run on the mainframe host, or to "get" JCL from a host-based library and run on the mainframe host. See this link. |
|
Back to top |
|
|
Rafael Longo
New User
Joined: 21 Jul 2007 Posts: 33 Location: Campinas, S?o Paulo, Brazil
|
|
|
|
Hi, Superk,
Thanks for the suggestions.
I like the second alternative. Looks like it fits exactly what I need... Triggering the job schedule when the file is uploaded.
Could you, please, provide any guidance on how to set up a dataset trigger? Any code sample, example or documentation would do...
Thanks!
Rafael |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Could you, please, provide any guidance on how to set up a dataset trigger |
Talk to the operations group persons responsible of the scheduling at Your shop,
if I remember well OPC can do it, I do not know about the other scheduling packages, but I guess they would have similar capabilities
regards
e.s |
|
Back to top |
|
|
|