How to display all objects authority in a library?

5 pts.
Tags:
AS/400
AS/400 objects
Object authority
Is there anyway to display (or outfile) all objects authority in a library? DSPOBJAUT require the object name (which i need to key in the name 1 by 1 & there are thousand of them), PRTPUBAUT doesn't include those object which public authority is *EXCLUDE. But what I want to do is check all objects authority in that particular library (including Public *exclude & also their authorization list).

Software/Hardware used:
AS400 V5R4

Answer Wiki

Thanks. We'll let you know when a new response is added.

Write a CL program to do the following:

1. Build a list of objects to outfile1 – use DSPOBJD OUTPUT(*OUTFILE)
2. Read through outfile1 and perform DSPOBJAUT on each object. Output results to outfile2. Make sure OUTMBR parm is *ADD

Outfile2 will now have a record for each object with each of their authorities.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • wpoulin
    NLKS, One option would be to do a Display Object Description, DSPOBJD OBJ(YourLib/*ALL) OBJTYPE(*ALL), to an outfile. Then in a CL Program read thru the outfile doing a Display Object Authority to a 2nd Outfile. Remember to use *ADD as opposed to *REPLACE on the 2nd outfile. Hope this helps, Bill Poulin
    2,480 pointsBadges:
    report
  • pdraebel
    Another quick option would be to create a command in PDM that does a DSPOBJAUT to an outfile with the *ADD option and run that against all objects in a library. Option . . . . . . . . : OA Command . . . . . . . . : DSPOBJAUT OBJ(&L/&N) OBJTYPE(&T) OUTPUT(*OUTFILE) OUTFILE(Mylib/OBJAUT) OUTMBR(*FIRST *ADD)
    2,605 pointsBadges:
    report
  • TomLiotta
    ...there are thousand of them ... what I want to do is check all objects authority in that particular library (including Public *exclude & also their authorization list). An authorization list may have many pages of users listed for each object. Private authorities for each object may print on many pages. If there really are "thousands of them", then it doesn't make much sense to print them all out. The printed output could literally be "thousands of pages". Libraries with "thousands" of objects potentially implies a large system with many users. Reviewing authorities in printed form is risky. It would be far better to have output go to a database file. The file could be queried at any time to see any desired details. The file could be saved for archiving. It could be queried from PCs for data mining. Query results could even be printed if that actually had some use. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following