How to list logonids in ACF2 that have a value range for a specific field.
search cancel

How to list logonids in ACF2 that have a value range for a specific field.

book

Article ID: 244680

calendar_today

Updated On:

Products

ACF2 - z/OS

Issue/Introduction

A USER field is defined in the ACFFDR referred to as NUMBER.
How can ACF2 be used to list logonids within a range in this numeric field?

For example: between 123400000 and 123400099

Environment

Release : 16.0

Component : ACF2 for z/OS

Resolution

To list all logonids with NUMBER between 123400000 and 123400099.
This command can be used.

ACF
Set terse
list if(NUMBER >= u'123400000' and NUMBER <= u'123400099')
END

You can also use acfrptsl to list user fields
https://techdocs.broadcom.com/us/en/ca-mainframe-software/security/ca-acf2-for-z-os/16-0/reporting/acfrptsl-selected-logonid-list.html

for example

//RPTSL JOB
//ACFRPTSL EXEC PGM=ACFRPTSL
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
TITLE(NUMBER field: VALUE01/VALUE02)
REPORT(SHORT)
INPUT(ACF2)
IF(NUMBER GE U'VALUE01' AND NUMBER LE 'VALUE02')
SFLDS(NUMBER)
//

If you are concerned about performance of these commands, you can run ACFRPTSL with   
INPUT(BKUP)

BKUP
Specifies input is accepted as a VB format file, as produced by the ACF2  automatic backup facility.
This parameter does not affect performance like the ACF2 parameter.