Hi, there is a source library for me where I created a module and I binded it to a program with the command 'CRTPGM'. Now I have created the object of that module in the object library. Now my question is how do I need to organize the library list when the things are as following.
Input files are in the library suresh
Output files and the module is in the object library naresh
Could you please let me know how I need to organize my library list
Software/Hardware used:
iseries
ASKED:
March 15, 2013 4:10 AM
UPDATED:
March 15, 2013 12:08 PM
How are the objects referenced? If we don’t know how they are referenced, we can’t know how libraries should be available. Also, what other objects are in the libraries? If any duplicate names of the same object types exist, it could require a change to a library list. What all will run in the same job? If it’s a batch job that runs the single program, the library list might be simple. But if it’s interactive or many programs might run, the list could be complicated.
Programming might not require anything but QSYS in a library list. Qualified references don’t use the library list. If duplicate names don’t exist, the organization of a library list makes little difference. If there are relatively few object references and authority lookups, it might make no diffrence at all how the lst is organized.
Most likely, you’ll have the library with input files and the library with output files in the user portion of the library list. Put them in whatever order you like. That’s about all anyone can say, and there is probably nothing more that will make any difference for your program.
Are you having a problem with this? If so, please explain the problem.
Tom
basically the library list should include the libraries of all objects you need to use. If more than one version of an object exists the process will default to using the one from the first library that it comes to in the list.
…the libraries of all objects you need to use.
I always add the thought “…of all {unqualified} objects” into the concept.
Qualification can improve performance by reducing library lookups and by allowing fewer libraries in the list that must be searched for unqualified objects. It can also improve security by helping ensure that external manipulation doesn’t alter objects used.
Tom
Unqualified, that’s true, but it made for a choppy sentence, so, I figured I would leave that detail for you.
A choppy sentence should be okay… for this question, eh? — Tom
the only problem with qualified references is when you want to run a different version of the program, such as the new version you want to test, or you want to only run it at one location as a beta when all the locations run as part of the one system.
well, maybe not “ONLY” LOL