retrieve library list

1355 pts.
Tags:
RPGLE
Subfile
how to retrieve library list when i pressed f4 in a field and is field has *all the it fetch all library listed in subfile

Answer Wiki

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

Not quite sure what you are asking.

You can see the library list for an interactive job via the DSPLIBL or EDTLIBL commands. You can see the library list for a batch job via the WRKJOB command, and then take option 13. Or, to see a list of libaries that exist on a system, you can use the DSPOBJD command, and look for *ALL objects in library QSYS with object type *LIB.

Discuss This Question: 7  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
  • CharlieBrowne
    Are you wanting to select one of the libraries?
    41,370 pointsBadges:
    report
  • TomLiotta
    A job's library list can be retrieved by calling the Retrieve Job Information (QUSRJOBI) API for the job and requesting format JOBI0700. Tom
    125,585 pointsBadges:
    report
  • bvining
    In addition to the Retrieve Job Information API previously referenced by Tom, the Retrive Current Attributes (QWCRTVCA) API can also return the library list. Bruce Vining
    6,465 pointsBadges:
    report
  • 9783444184
    Hi Tom, Retrieve Job Information QUSRJOBI help me but QUSRJOBI it display only list of user library list i want all system library what i modify in my program to get all system library Thanks
    1,355 pointsBadges:
    report
  • TomLiotta
    ...it display only list of user library list i want all system library... The simplest way is to use the DSPOBJD command to create a list of all user libraries in a temporary database file. Then read the records from that file in your RPG program. The command might look like this:
    DSPOBJD OBJ(*ALLUSR) OBJTYPE(*LIB) OUTPUT(*OUTFILE) OUTFILE(QTEMP/USRLIB)
    You could also call the List Objects (QUSLOBJ) API and request a very similar list into a user space instead of a database file. No CL is needed for that, but it can be more complex. Tom
    125,585 pointsBadges:
    report
  • 9783444184
    i have created a cl program using dspobjd and when i call cl program i have got a message id CPF9860 Error occurred during output file processing. hoe to solve it
    1,355 pointsBadges:
    report
  • TomLiotta
    i have got a message id CPF9860 Error occurred during output file processing. hoe to solve it We will need to see the source for the CL program in order to know how the problem might be fixed. 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