Previous Topic: Invoke TUNCALL from a Batch Job

Next Topic: Invoke a Monitor from Within a Program

Route Message Output to a File

To route the output of the log to a file instead of the console and to specify more than a single TUNCALL request, use syntax shown in the following example:

//JOBNAME JOB (ACCT),'CALL CAMAT',CLASS=A,MSGCLASS=A //* //TUNCALL EXEC PGM=TUNCALL, //TUNPRINT DD SYSOUT=* //TUNIN DD* /* Monitor the next payroll job */ MATUNER,MONITOR INVOKE PROFILE(PAYPROD1) MATUNER,MONITOR INVOKE PROFILE(ABC*) - FROMUSER(TEST1) - ELAPSTIME(90) SAMPLECNT (9000)

This example processes multiple requests and sends all messages and results to the TUNPRINT DD statement.