I want to find the list of all the libraries available in the AS400 system. Is there any command that can be used to find or list out all the libraries created till now on the same AS400 system?
Sorry, you do not have permission to ask a question, You must login to ask a question.
Sorry, you do not have permission to ask a question.
I want to find the list of all the libraries available in the AS400 system. Is there any command that can be used to find or list out all the libraries created till now on the same AS400 system?
To list all the libraries in as400 use the DSPOBJD command.
Step 1: The DSPOBJD command will list out all the libraries on the as400 system and create an outfile. In the OUTFILE parameter input the library and file name where you want to create the outfile.
DSPOBJD OBJ(*ALL/*ALL) OBJTYPE(*LIB) OUTPUT(OUTFILE) OUTFILE(Library/Outfile)
Step 2: Once the outfile is created in
Step 1
, then just query the file in the STRSQL session and the field ODOBNM is the name of the library object.Select ODOBNM from library/outfile