I want to find the list of the names of all the libraries in AS400.
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 the names of all the libraries in AS400.
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