View previous topic :: View next topic
|
Author |
Message |
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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.. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Kevin,
Your suggestion is really a tricky one, well, I'm working on it- would be back to thread soon. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
|