IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Start (submit) a mvs job from within a Unix shell script


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rafael Longo

New User


Joined: 21 Jul 2007
Posts: 33
Location: Campinas, S?o Paulo, Brazil

PostPosted: Tue Sep 04, 2007 12:05 am
Reply with quote

Hello, everyone,

Is there a way to start (submit) a mvs job from within a Unix shell script?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 04, 2007 5:37 am
Reply with quote

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
View user's profile Send private message
Rafael Longo

New User


Joined: 21 Jul 2007
Posts: 33
Location: Campinas, S?o Paulo, Brazil

PostPosted: Tue Sep 04, 2007 8:44 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Sep 04, 2007 1:45 pm
Reply with quote

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
View user's profile Send private message
Rafael Longo

New User


Joined: 21 Jul 2007
Posts: 33
Location: Campinas, S?o Paulo, Brazil

PostPosted: Tue Sep 04, 2007 6:59 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 04, 2007 7:43 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts I don't really get the, "Start a... General Talk & Fun Stuff 3
Search our Forums:

Back to Top