There is a function in JCL called COMMAND

Depending on your version of the operating system - it can be found in the JCL 
Reference manual

JCL command statement
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.ieab600/comdst.htm

If an in-stream command is to be executed (see the explanation in the following 
section "Defaults" ), the system usually executes it as soon as it is read. 
Therefore, the command will not be synchronized with the execution of any job 
or step in the input stream. To synchronize a command with the job processing, 
tell the operator the commands you want entered and when they should be issued, 
and let the operator enter them from the console.

The system processes each command according to installation options for both 
the input device from which the job was read, and the job class.

A command statement can appear anywhere after a JOB statement and before the 
end of the job. If a command statement appears between jobs, it is ignored. A 
command statement should not be placed before the first JOB statement in an 
input stream.

Example

// F NETVIEW,CLOSE IMMED


You can imbed any MVS or JES2 or JES3 command on this type of statement.  This 
includes the SEND command.

If you want something that has more options, like action the WTO, let the list 
know.  There are tools on the CBTTAPE.ORG that could be helpful.


Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of
> Lizette Koehler
> Sent: Saturday, April 06, 2019 4:43 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: JCL for WTO
> 
> Not knowing your shop, have you checked to see if you already have tools that
> will do this?
> 
> For example, if you want a WTO to indicate a job has done something, if you
> have automation tools (like CA OPS/MVS) or a scheduler tool (like IBM Tivoli
> Scheduler)  then they may already be able to provide this function.
> 
> Since you only asked the basic question, you may not get a solution that will
> fit your environment.
> 
> If you do not have tools, then the solutions offered could work.
> 
> However, if you do have tools, it might be easier to engage your system
> programmers to see what solutions to do what you want are available.
> 
> Or provide more details on what problem you are trying to solve, and you may
> get better answers.
> 
> 
> 
> Lizette
> 
> 
> > -----Original Message-----
> > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On
> > Behalf Of Bill Giannelli
> > Sent: Saturday, April 06, 2019 12:32 PM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: JCL for WTO
> >
> > can you run a WTO command directly from JCL?
> > I want to execute a WTO directly from my job.
> > thanks
> > Bill
> >
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to