How to list specific sections or fields of LID records in ACF2
search cancel

How to list specific sections or fields of LID records in ACF2

book

Article ID: 215133

calendar_today

Updated On:

Products

ACF2 ACF2 - MISC ACF2 - z/OS

Issue/Introduction

The LIST LIKE(-) command in TSO ACF2 produces too much output. How do I limit the output to just a specific section or field of the LID record?

Resolution

There are a couple different ways to LIST specific LID record information in ACF2:

1. Issue a LIST LIKE(-) command specifying SECTION(lid section). For example, this command will display a list of all users and their password information:

LIST LIKE(-) SECTION(PASSWORD)

2. If that is still too much output and only specific fields as opposed to sections in the LID record are desired, the ACFRPTSL report can be used. The example JCL below will output all logonids from the LID database with their PWP-DATE and PWP-VIO. INPUT(ACF2) is to specify you want to pull information from the ACF2 LID database and REPORT(SHORT) is required in order to use the SFLDS() parameter. The SFLDS() parameter is where to specify the external field names (as defined in the ACFFDR @CFDE entries) of the selected logonid record 

//REPORT  EXEC PGM=ACFRPTSL
//SYSPRINT DD SYSOUT=*     
//SYSIN    DD *            
 TITLE(ACF2 SL REPORT)     
 INPUT(ACF2)              
 REPORT(SHORT)            
 SFLDS(PWP-DATE PWP-VIO)