library list

380 pts.
Tags:
AS/400
RPG/400
pgmrjobd is my job description and lib is qgpl.wtih these two parameters how to get the lib list through rpg program

Software/Hardware used:
rpg

Answer Wiki

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

You don’t actually put a lib list (libl) in a RPG program. The library list (libl) is attached to the program in one of the following ways:

1 – A CL program sets up the libl and then call the rpg program
2 – if the rpg program is called via the command line, then it would use the user current libl, set by your current jobd. You could also change your libl to reflect the correct libraries before running the program interactively.
3 – submit the call of the program to batch and use the current jobd (libl) or change the jobd & libl on the sbmjob command.

Discuss This Question: 3  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 asking how to retrieve your current library list in an RPG program? You statment is confusing
    41,380 pointsBadges:
    report
  • Splat
    The QWDRJOBD API in conjuction with the JOBD0100 format will give the job description's initial library list. The QUSRJOBI API in conjunction with the JOBI0700 format will give you the job's current library list.
    7,235 pointsBadges:
    report
  • TomLiotta
    QWDRJOBD is an API, but you call it just like you would call any program. The documentation tells you what parameters to supply and how to define them. Set up the parameter values, call the API and process the value that it returns. The documentation also describes how the returned data is formatted. 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