The IEFBR14 and IDCAMS utilities can be used to determine whether an ACC rule is working correctly. For example, the following IEFBR14 job attempts to allocate a production data set on an invalid volume. If the previous PRDPERM rule functions correctly, the data set should be allocated on one of the PRDPOOL volumes.
//JOBNAME JOB ...
//TEST EXEC PGM=IEFBR14
//ACCTEST DD DSN=PROD.TESTACC.FILE,
// SPACE=(TRK,(1)),
// DISP=(NEW,CATLG),UNIT=SYSALLDA,
// VOL=SER=WORK01
The IDCAMS utility can be used to determine whether VSAM allocations are being controlled by ACC. The following example attempts to allocate a production VSAM data set on an invalid volume. ACC should correct the request, and pool the allocation request to a PRDPOOL volume.
//JOBNAME JOB ...
//TEST EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//ACCTEST DD DUMMY
//SYSIN DD *
DEFINE CLUSTER(NAME(PROD.TESTACC.VSAM) INDEXED - TRACKS(1) VOLUME(WORK01))
If the ACC or SRS rule does not seem to be performing correctly, additional information about ACC or SRS language processing can be obtained with the language tracing facility. For more information, examine “Language Tracing Facility” on page 7-3.
The previous examples use the ACCTEST DD statement to activate the sample rule. If you want to test in TSO environments, use the following TSO command to allocate to the ACCTEST file.
ALLOC FI(ACCTEST) DUMMY
Note: The ACCVSAM option must be enabled before ACC will intercept VSAM DEFINEs.