List of objects

270 pts.
Tags:
DSPOBJD
object
Outfile
RPG
RPGLE
Hi.. I got to create a pf which will have list of objects present in all the user libraries availabe. When i use DSPOBJD, the server gets struck. DSPOBJD works fine when a specified library is specified. But in order to get all the objects, is there anyother options?
ASKED: October 19, 2012  5:46 AM

Answer Wiki

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

What do you mean “the server gets stuck”?

What options have you tried for the *LIB parameter on the DSPOBJD command?

 

Discuss This Question: 6  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
  • TomLiotta
    When i use DSPOBJD, the server gets struck.   "Struck"? Did you nean "stuck"?   Can you explain what that means? Does the system actually lock up? Or does the command only seem to stop working? Unless you run the command in restricted state, or if your system is very small with few user libraries and objects, I would expect it to take a long time.   There are alternatives that are "better". The DSPOBJD command is kind of entry-level for this type of work. Beyond commands are the APIs. I would expect that an experienced CL programmer could get better results from the APIs. They just aren't quite as easy to grasp and to handle.   The List Objects (QUSLOBJ) API is the most basic of this group. I think of it as a '2nd level' API because there are additional APIs that need to be used in order to handle its results. The Open List of Objects (QGYOLOBJ) API is more complex, though it can be needed for larger systems. It also requires additional APIs, and it requires a slightly different way of thinking about the programming due to the interaction with the secondary job it starts. (Similar to a 'worker' thread.)   You can look into those APIs. You should probably stick with the simpler QUSLOBJ, though it's not likely to help much. Your problem is probably in what you're trying to do.   Why does anybody need a file of every object in every user library? What can actually be done with such a file?  Maybe if we knew the business reason for this, we could skip a bunch of steps and get straight to a working procedure.   Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    We had to run something like that here when we started running out of disk space. Users were not good at housekeeping their query files. We ran the DSPOBJ command for all libs and sent it to an *OUTFILE.. It ran for about a half hour interactively. It did not lock the system.Try running yours in batch and check out the joblog as its running. I think you will see it's still getting I/O's. You may just have to be patient.
    6,360 pointsBadges:
    report
  • ToddN2000
    Forgot to mention we got back about 18% of our disk space. Some users had file they created for year end work they never cleaned up. The reason is they do not have access to the DLTF command so they hang around until the operations department can clear them. Giving them access to the DLTF/CLRPFM commands are still out of the question so. Anyone have a suggestion as to how they can clean-up after themselves? 
    6,360 pointsBadges:
    report
  • BigKat
    you could create a front end that would only show them their files, and let them select what to delete or clear.  the application would then issue the dltf and clrpfm commands as appropriate
    7,585 pointsBadges:
    report
  • ToddN2000
    I'll pass your idea along BigKat. I have since moved to our .NET development teams and no longer have access to that side. I may slap together some quick code as a word doc and pass it along to them. Should not be hard to build a file listing dynamically as a subfile for the user to maintain their own files.
    6,360 pointsBadges:
    report
  • TomLiotta
    The RTVDSKINF command is already capable of creating a list of "all" objects. If all that is needed is such a list, that should be the preferred method. But we don't yet know why this list is needed. -- 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