Home > Ask the AS/400 Experts > Questions & Answers > Storing library objects
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Storing library objects

Ken Graap EXPERT RESPONSE FROM: Ken Graap

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site
>
QUESTION POSED ON: 21 April 2004
Storing library objects
I want to store all objects available in the library with object name and object type in my own database, but I didn't get any CL command or API to retrieve that information from library. Is there any CL command available for this purpose?

>

Here is one way to do what you want to do.

The DSPOBJD command allows you to store its output into a DB file...

        DSPOBJD OBJ(QGPL/*ALL) OBJTYPE(*ALL) OUTPUT(*OUTFILE)
OUTFILE(mylib/myfile)

This command creates a list of all the objects in library QGPL and places that list into file MYFILE in library MYLIB.

Excerpt from the DSPOBJD HELP test:

Note: If a new file is created, the text describing that file is "Output file for DSPOBJD" and the public authority is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the libraries create authority. The database format (QLIDOBJD) of the output file is the same as that used in the IBM-supplied file database QADSPOBJ.

Use the following command to see the format of the *OUTFILE:

 DSPFFD FILE(mylib/myfile)

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts