Search390.com
Expert Question of the Week 
June 18, 2001

=====================================
SPONSORED BY: Postmaster Direct
=====================================
What do you like? Networks? Computer Games? Downloads?  How about
Free Stuff? Search390.com can get you FREE info on the topics that
interest you most - and there are so many to choose from! We'll find
related news, information and special offers and deliver them
directly to your e-mailbox, all at no charge! 
Sign up here today http://search390.techtarget.com/postmasterDirect/
=====================================

Welcome to Search390's Expert Question of the Week newsletter.
Remember, no question is too simple for Ask the Experts! If you have
a 390-related question, send it to [EMAIL PROTECTED] Selected
questions will be answered by our experts. 

This week's question was answered by Mark Zelden, search390's OS/390
Systems Programming Expert.

Q:  How do you sub/schedule a job that resides in a pds to be
submitted every 20 minutes or whatever time interval you choose?  I
saw this before and didn't bookmark it. Can you help or at least
point me to the right guide?

A:  I assume you are asking how to do this without a scheduling
package, (purchased or freeware), or writing your own utility.

Without writing any programs, one way I can think of would be by
using JES2 automatic command processing in combination with a utility
like IEBEDIT to submit the job. JES2 can be used to issue certain
commands or strings of commands that take effect automatically at
specific times or at regular intervals. You use the "$T A" command to
ADD the automatic command to JES2. You can issue the "$T A" command
from the console, or add the command to your JES2 startup parameters
(JES2PARM). If this is a command to be issued on a regular basis,
after any IPL, then I prefer to add it to JES2PARM. Another reason
for adding automatic commands to JES2PARM is that if JES2 crashes,
you lose all automatic commands after it is restarted. See the JES2
Commands manual, the JES2 Initialization and Tuning Guide, and the
JES2 Initialization and Tuning Reference for more detail on JES2
automatic commands.

Here is an example of how you could accomplish what you want:

1) Set up a PROC in a system STC PROCLIB called "JOB". This would be
the IEBEDIT utility and would look something like this:
//JOB PROC M=                                        
//IEFPROC  EXEC PGM=IEBEDIT                          
//SYSPRINT DD  SYSOUT=Z                              
//SYSUT1   DD  DDNAME=IEFRDER                        
//SYSUT2   DD  SYSOUT=(A,INTRDR),DCB=BLKSIZE=80      
//SYSIN    DD  DUMMY                                 
//IEFRDER  DD  DSN=batch.job.pds(&M.),DISP=SHR   

This PROC would be used to submit a batch job with the following
operator command: START JOB,M=pds_mbr_name

2) Issue the JES2 automatic command to "submit" the job every 20
minutes:
$T A,I=1200,'$VS,''S JOB,M=MYJOB''' 

JES2 would issue the "S JOB,M=MYJOB" at the time you entered the
command, and then at 20 minute intervals.

If you didn't want this to start until a particular time, you could
add the "T=" parameter to the "$T A" command:
$T A,T=18.30,I=1200,'$VS,''S JOB,M=MYJOB''' 

You could issue all of your JES2 automatic commands on a daily basis
by creating a member called "JES2AUTO" in your PDS, and doing
something like this:
/*$CA,ALL                               
/*$TA,I=3600,'$VS,''D T'''              
/*$TA,I=900,'$DSPOOL,ALL'               
/*$TA,I=900,'$DA,J,X'                   
/*$TA,T=06.59,'$OQ,Q=X,CANCEL,A=4'      
/*$TA,T=06.59,'$OQ,ALL,CANCEL,A=15'     
/*$TA,T=06.59,'$PQ,ALL,A=15'            
/*$TA,T=23.59,'$VS,''W L'''             
/*$TA,T=24.00,'$VS,''S JOB,M=JES2AUTO'''    
/*$SA,ALL                            

===============================
ASK THE EXPERT
===============================
Do you have a question for Mark?  To submit your question(s), go to
http://search390.techtarget.com/ateQuestion/0,289624,sid10_cid393389_tax287555,00.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
===============================
HAVE YOU BEEN MISSING OUT?
===============================
Like FREE Stuff? How about free expert advice?  If you haven't been
to our discussion forums lately, you've missed out on some great
Q&A's revolving around some of the hottest topics in the industry
today. Here are examples of what's been happening:

Developer Forum
--User "dcsmel" wasn't sure if you can use MS Access to read/write to
DB2.  What do you think?  See what our Developer Forum Moderator and
390 Expert Jim Keohane had to say.  Go to: 
http://search390.discussions.techtarget.com/WebX?[EMAIL PROTECTED]^[email protected]

Operating Systems Forum
--Many people have posted about Linux lately, everything from
connecting Linux on the mainframe, to thoughts on the Linux free
trial.  Linux on S/390 Expert Jan Lahmann took the time to answer
some posts as well.  
* For instance, "Ahmed" wanted to know if it was necessary to have
Xserver to use xdm.
*"Craiglei" wanted to know if he could use a 3270 terminal to connect
Linux on mainframe. 

If you'd like to see the answers to the above posts, think you have
better answers, or have questions of your own, go to the Operating
Systems Forum. 
http://search390.discussions.techtarget.com/WebX?[EMAIL PROTECTED]^[email protected]
==========================

==========================
ARE YOU AN EXPERT?
==========================
Or maybe you just have a great tip or trick that you've been keeping
to yourself.  Well, why not share it with the rest of us?  You never
know, it could get you a hot little Palm Vx! Search390 is having a
tips contest.  The user-submitted tip that gets the highest rating
(from your peers and search390 experts) will win a Palm Vx Ultra Slim
Handheld.  You can submit a tip in the following categories: Storage;
Systems Management; Developer; and Web Enabling.  The contest will
end soon, so hurry!

To check out the tips, this month's prize, or submit a tip of your
own
today, go to:
http://search390.techtarget.com/tips/0,289484,sid10_tax1642_prz_cts,00.html

======================================================== 
If you would like to sponsor this or any TechTarget newsletter,
please contact Gabrielle DeRussy at [EMAIL PROTECTED]
======================================================== 


If you no longer wish to receive this newsletter simply reply to 
this message with "REMOVE" in the subject line.  Or, visit 
http://search390.techtarget.com/register 
and adjust your subscriptions accordingly. 

If you choose to unsubscribe using our automated processing, you 
must send the "REMOVE" request from the email account to which 
this newsletter was delivered.  Please allow 24 hours for your 
"REMOVE" request to be processed.

Reply via email to