This article documents how to run the ACFRPTXR-The Cross-Reference Report in batch and provides sample JCL.
ACFRPTXR determines who has access to a specified data set or resource, based on standard ACF2 security controls. ACF2 provides a sample report named REPORTS in the ACF2 SAMPJCL library.
The ACFRPTXR report parameters can be specified using the PARM parameter of the EXEC statement in the JCL or the SYSIN DD.
The ACFRPTXR report uses standard ACF2 report JCL for batch submission as shown in the following examples:
Example 1 Using PARM statement for report parameters
//REPORT EXEC PGM=ACFRPTXR,PARM=('TITLE(SAMPLE ACFRPTXR)',
// 'ACF2,DSET,LIDNAME')
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSDSLST DD *
SYS1.PARMLIB
SYS1.PROCLIB
Example 2 Using SYSIN file for Dataset report parameters.
//REPORT EXEC PGM=ACFRPTXR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSDSLST DD *
SYS1.PARMLIB
SYS1.PROCLIB
//SYSIN DD *
TITLE(SAMPLE DATASET ACFRPTXR)
ACF2
DSET
LIDNAME
//*
Example 3 Using SYSIN file for Resource report parameters
//REPORT EXEC PGM=ACFRPTXR
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSIN DD *
TITLE(SAMPLE RESOURCE ACFRPTXR)
ACF2
RSRC
TYPE(FAC)
NAME(BPX.CONSOLE)
LIDNAME
CLASS(R)
//*
Example 4 Using SYSIN file for Resource report parameters for multiple Resource Keys
//REPORT EXEC PGM=ACFRPTXR,REGION=0M
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(100,100)) DCB=BUFNO=30
//SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(500,500)),DCB=BUFNO=30
//SYSRSLST DD *,DCB=BLKSIZE=80
TYPE(ITP) NAME(CDA)
TYPE(ITP) NAME(TRAN2)
TYPE(ITP) NAME(TRAN3)
//SYSIN DD *
ACF2
RSRC
CLASS(R)
LID
LIDNAME
NEXTKEY
//*
Example 5: Using SYSDSLST pointing to another dataset DATASET.NAME(MEMBER) containing a list of dataset names
//REPORT EXEC PGM=ACFRPTXR,REGION=640K,PARM='DSET,ACF2'
//SYSPRINT DD SYSOUT=*
//HEXDUMP DD SYSOUT=*
//SYSUT1 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSUT2 DD UNIT=SYSDA,SPACE=(CYL,(2,2)),DCB=BUFNO=5
//SYSDSLST DD DSN=DATASET.NAME(MEMBER),DISP=SHR
//*
Details on the ACFRPTXR report and all available parameters can be found in ACF2 documentation section ACFRPTXR-The Cross-Reference Report