Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Start (submit) a mvs job from within a Unix shell script

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Start (submit) a mvs job from within a Unix shell script
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

Site Director


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

PostPosted: Tue Sep 04, 2007 5:37 am    Post subject:
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    Post subject: Reply to: Start (submit) a mvs job from within a Unix shell
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

Moderator Team Head


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

PostPosted: Tue Sep 04, 2007 1:45 pm    Post subject: Reply to: Start (submit) a mvs job from within a Unix shell
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue Sep 04, 2007 7:43 pm    Post subject: Reply to: Start (submit) a mvs job from within a Unix shell
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts Iterative use of a REXX script causin... bryonyh CLIST & REXX 4 Fri Jul 28, 2017 12:52 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us