Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Trigger a JOB at a specific time.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Aug 22, 2008 9:00 pm    Post subject: Trigger a JOB at a specific time.
Reply with quote

Hi,

Well, old villian re-entry, I'm asked to run a job in my test region at some specific time; have checked this link-

http://ibmmainframes.com/about26572.html

not sure how to issue, where to issue those JES2 commands explained in the above link, please assist. I'm rather habitual of CA schedulers.. icon_neutral.gif
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Fri Aug 22, 2008 11:40 pm    Post subject: Reply to: Trigger a JOB at a specific time.
Reply with quote

The JES2 Set Automatic command $TA is issued on the MVS Master Console. It tells JES to execute another JES command at the specified time or interval.

The tricky part is telling JES what command to issue at that time. There are no JES commands to submit a job (you can easily start a task, though), so you have to think about what you want to do. Of course, most shops usually have a task that can be started and passed a jobname, which the task will read from a specific library and submit through the Internal Reader. You would need to know the name of that task and what library(s) it reads the jobs from.

The only possibility I can think of is to submit your job with TYPRUN=HOLD. Then, issue the $TA command for the set time. Have the $TA command issue the $A command to release your specific job.

Surely these test systems must offer some sort of alternative??
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: Fri Aug 22, 2008 11:58 pm    Post subject:
Reply with quote

Hi Anuj,

As recommended in the thread you mentioned - just set it up with the scheduling people.

If it is supporting work for the company, the company should run it via the sheduler.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Sat Aug 23, 2008 12:31 am    Post subject: Reply to: Trigger a JOB at a specific time.
Reply with quote

The shop I work in also has a Maintenance LPAR that's used as the starting point for major system upgrades (i.e. product and O/S releases) and it exists in a bare-bones configuration. It's a stand-alone system so it doesn't share any resources with any other system. This system always has, outside of the basic O/S, Tivoli Netview (for network monitoring), AutoOperator (for system monitoring), and Connect:Direct (for transferring datasets TO the system only). So, any one of those three products can be used to schedule time/date aware events that can submit a job, so there's usually not a problem running jobs when needed.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Aug 30, 2008 5:52 pm    Post subject:
Reply with quote

Hi Dick,
dick scherrer wrote:
If it is supporting work for the company, the company should run it via the sheduler.
No, it's in "Testing" region of my shop & it's an "adhoc" requirement, not the permanet one. I do not need to install this in "production".
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Aug 30, 2008 6:29 pm    Post subject:
Reply with quote

Hi Kevin,

Your suggestion is really a tricky one, well, I'm working on it- would be back to thread soon.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Aug 30, 2008 6:37 pm    Post subject:
Reply with quote

Has the LPAR any connections with production, like NJE.

If it has, the job can be scheduled with an XEQ card to route the job to the correct LPAR.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sun Aug 31, 2008 11:03 am    Post subject: Reply to: Trigger a JOB at a specific time.
Reply with quote

For non-mission critical jobs on systems where security is not a major issue, I've always submitted the job from the PC via FTP and used the Windows task scheduler or Linux cron. This is fine for daily tasks like source code maintenance such as scheduled builds, etc but requires the PC to hold your MVS password.

If you don't have a scheduler but need an MVS only solution, you may have cron running in MVS and that can be used also as long as you can add scheduled tasks. I've never used a commercial scheduler, but I've never needed one because these solutions (and $TA set to release jobs submitted to a special hold class) have always been sufficient for my needs.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Sep 01, 2008 1:23 pm    Post subject:
Reply with quote

Hi,
Quote:
I've always submitted the job from the PC via FTP and used the Windows task scheduler or Linux cron.
Linux is not in my choice just for now, how do you do that using PC's taks scheduler, please assist.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Mon Sep 01, 2008 6:54 pm    Post subject: Reply to: Trigger a JOB at a specific time.
Reply with quote

create a batch file (.cmd) that does the FTP and assign a task to that with start>settings>control panel>Scheduled Tasks. The command file can be something like this
Code:
@echo off
(
echo open your.fto.site
echo user youruserid yourpassword
echo cd htdocs
echo put your.file
echo dir
echo quit
) | ftp -n
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Mon Sep 01, 2008 7:13 pm    Post subject: Reply to: Trigger a JOB at a specific time.
Reply with quote

Better example that uploads JCL from the PC, submits it, waits for the job to complete, retrieves the output back to the PC and deletes the JCL stored at the host.
Code:
@echo off
(
echo open mvshost
echo user youruserid yourpassword
echo put jcl.txt
echo quote site filetype=JES
echo get jcl.txt job.output.txt
echo quote site filetype=SEQ
echo dele jcl.txt
echo quit
) | ftp -n
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 DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us