Previous Topic: Processing during a Batch RunNext Topic: Batch Log


Sample JCL

Use JCL similar to the following example to run test streams in batch.

//TCABATCH	EXEC	PGM=TCABATCH,REGION=1024K
//STEPLIB	DD	DISP=SHR,DSN=VTAM.TCA.LOADLIB
//TCADSIN	DD	DISP=SHR,DSN=VTAM.TCADS
//TCADSOUT	DD	DISP=SHR,DSN=VTAM.TCADS2
//SYSPRINT	DD	SYSOUT=A
//TCAPRINT	DD	SYSOUT=A
//TCASNAP	DD	SYSOUT=A
//SYSIN	DD	*
RUN TCADSOUT.GENERAL.PAYROLL.001 THINK(50%) NONE 
RUN TCADSOUT.GENERAL.CLAIMS.003 LIMIT(100) PHYSICAL
PRINT DIFF(ONLY) COMBINED
SELECT GENERAL.PAYROLL.>>>>>>
SELECT GENERAL.CLAIMS.>>>>>>
/*

In this example:

Two return codes are set by the batch Run function:

0

No mismatches

4

Mismatches

Note: The Print function can be executed without the Run function to print the results of runs for which the Run Record History option was Yes. See the Print Parameters section earlier in this chapter.