This is a sample of how to run the TEST command in ACF2 for DB2 interactively but trying to get it to work using ACFBATCH is a failure
set db2(tbl) sysid(sid)
DB2
TEST rulename
. uid(userid) SERVICE(SELECT)
ACFD2214 THE FOLLOWING PARAMETERS ARE IN EFFECT:
$TYPE=TBL $SYSID=sid
$KEY=rulename
DATE=dd/mm/yy TIME=hhmm UID=userid
SERVICE=(SELECT) COLUMN=()
TARGET RESOURCE: rulename
NO RULE LINE APPLIES IN TYPE TBL SYSID sid KEY rulename
RESULT: ACCESS WOULD BE DENIED
REASON: RESOURCE RULE
here is a start
//ACF EXEC PGM=ACFBATCH
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET DB2(TBL) SYSID(sid)
TEST rulename
what next ?
Z/OS
Incorrect JCL used.
This JCL will run the TEST command in Batch.
//ACF EXEC PGM=ACFBATCH
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET DB2(TBL) SYSID(sid)
TEST rulename
UID(userid) SERVICE(SELECT)