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

Trigger a JOB at a specific time.


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

Superior Member


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

PostPosted: Fri Aug 22, 2008 9:00 pm
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-

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

Global Moderator


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

PostPosted: Fri Aug 22, 2008 11:40 pm
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

Moderator Emeritus


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

PostPosted: Fri Aug 22, 2008 11:58 pm
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

Global Moderator


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

PostPosted: Sat Aug 23, 2008 12:31 am
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

Superior Member


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

PostPosted: Sat Aug 30, 2008 5:52 pm
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

Superior Member


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

PostPosted: Sat Aug 30, 2008 6:29 pm
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: 8797
Location: Welsh Wales

PostPosted: Sat Aug 30, 2008 6:37 pm
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: 400
Location: Mumbai

PostPosted: Sun Aug 31, 2008 11:03 am
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

Superior Member


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

PostPosted: Mon Sep 01, 2008 1:23 pm
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: 400
Location: Mumbai

PostPosted: Mon Sep 01, 2008 6:54 pm
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: 400
Location: Mumbai

PostPosted: Mon Sep 01, 2008 7:13 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top