Link to home
Start Free TrialLog in
Avatar of Matthew Roessner
Matthew Roessner

asked on

How to list users in an Authorization List programmatically

Does anyone know how I would be able to output all users in an Authorization List to an IFS file - programmatically?

Any help is much appreciated.
Avatar of Barry Harper
Barry Harper
Flag of Canada image

You can put the list of users into an outfile:
DSPAUTL AUTL(MYAUTL) OUTPUT(*OUTFILE) OUTFILE(MYFILE)
and then copy that file to the IFS using CPYTOIMPF, similar to:
CPYTOIMPF FROMFILE(MYFILE) TOSTMF('/myfile') RCDDLM(*CRLF)
specifying a path for /myfile

Hope this helps
Barry
One additional note, to minimize cleanup, I often drop the file in QTEMP:

OUTFILE(QTEMP/MYFILE)

FROMFILE(QTEMP/MYFILE)

MYFILE will be automatically deleted when you log off, or when the batch job ends.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_276102
Member_2_276102

Thank you, but I suggest that at least partial credit go to previous answers. The "programmatically" element seems too open to individual interpretation and can also fit with those.