>>> (E.g coding dozens of lines of DFSORT commands where a single "grep" 
would suffice.)

Paul,

I am not sure why DFSORT is dragged into this topic, but you don't have to 
code dozens of DFSORT commands. I always believe in using the right 
utility for the job. Scheduling jobs is not something DFSORT can process, 
however it can handle simple requests. Here is a sample to submit a job 
based on the day of the week. we can validate the date and time too.

//***************************************************************
//* GENERATE THE SUBMIT COMMAND BASED ON THE LOCAL DAY OF WEEK  *
//***************************************************************
//STEP0100 EXEC PGM=SORT 
//SYSOUT   DD SYSOUT=* 
//SYMNAMES DD * 
DAYOFWEEK,S'&LWDAY' 
MONJOB,'YOUR.JOB.PDS(JOB1)' 
TUEJOB,'YOUR.JOB.PDS(JOB2)' 
WEDJOB,'YOUR.JOB.PDS(JOB3)' 
THUJOB,'YOUR.JOB.PDS(JOB4)' 
FRIJOB,'YOUR.JOB.PDS(Job5)' 
SATJOB,'YOUR.JOB.PDS(JOB6)' 
SUNJOB,'YOUR.JOB.PDS(JOB7)' 
//SORTIN   DD * 
A 
//SORTOUT  DD DSN=&&J,DISP=(,PASS),SPACE=(TRK,(1,1),RLSE) 
//SYSIN    DD * 
  OPTION COPY 
  INREC OVERLAY=(01:DAYOFWEEK, 
                 10:1,3,CHANGE=(55,C'MON',MONJOB,C'TUE',TUEJOB, 
                                   C'WED',WEDJOB,C'THU',THUJOB, 
                                   C'FRI',FRIJOB,C'SAT',SATJOB, 
                                   C'SUN',SUNJOB)) 
 
  OUTREC BUILD=(10,55,JFY=(SHIFT=LEFT,LEAD=C' SUBMIT ''', 
                          TRAIL=C'''',LENGTH=80)) 
//* 
//***************************************************************
//* SUBMIT THE JOB                                              *
//***************************************************************
//STEP0200 EXEC PGM=IKJEFT01 
//SYSTSPRT DD SYSOUT=* 
//SYSTSIN  DD DISP=(OLD,DELETE),DSN=&&J 



Thanks,
Kolusu
DFSORT Development
IBM Corporation

IBM Mainframe Discussion List <[email protected]> wrote on 
06/06/2017 09:55:05 AM:

> From: Paul Gilmartin <[email protected]>
> To: [email protected]
> Date: 06/06/2017 09:55 AM
> Subject: Re: John's spare time ... Job Scheduler Programmer Architect?
> Sent by: IBM Mainframe Discussion List <[email protected]>
> 
> On Tue, 6 Jun 2017 06:44:25 -0400, John Eells wrote:
> >>
> >> ...   I expect to be informed of deficiencies of crontab, but at 
> least it's there.
> ><snip>
> >
> >Why do you think crontab is "not there" in z/OS?
> > 
> I'm aware that it's there, although only recently (from my perspective).
> I don't know that it meets all the requirements of a job scheduler.
> 
> And some readers of this list still prefer not to deal with UNIX.  But
> I guess that's a personal problem.
> 
> (E.g coding dozens of lines of DFSORT commands where a single
> "grep" would suffice.)
> 
> --gil
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
> 



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to