|
Reader Feedback and Insights: Soft-Coded Library Lists
Hey, Ted:
This regards adding library lists at runtime ["Hard-Coded Library List Woes"]. I would like to suggest a technique that we implemented in a project I worked on.
This is using the concept of library groups available from the TAATOOL toolset package. I believe this library is available on most AS/400 systems. We can group a set of libraries under a common name. We can then add this library group to the system at runtime. We also can specify things like library priorities. Here is a small example:
DCL VAR(&LIBGRPLIB) TYPE(*CHAR) LEN(10)
RTVDTAARA DTAARA(SYTSYSGRPL) RTNVAR(&LIBGRPLIB)
ADDLIBGRP LIBGRP(HAWKIGRP) LIBGRPPLIB(&LIBGRPLIB)
HAWKBAR
--Prajeesh
The TAATOOL package originally shipped as a freebie add-on to OS/400. The tools carried no guarantee. At some point, the package ceased to be shipped with OS/400 and became available for sale from Jim Sloan Inc. Jim Sloan has continued to enhance the package, and there are many more tools now. I occasionally hear of a shop that still has the old code and is running some it. I don't know if the ADDLIBGRP utility was part of the package back in the old days.
--Ted
Sponsored By
ADVANCED SYSTEMS CONCEPTS
|
|
Quoted from an experienced programmer
new to the iSeries (AS/400):
"The best thing about working on the AS/400 is using ASC's SEQUEL product."
If you're tired of the limitations imposed by Query/400 or ODBC-based query and reporting tools, you need SEQUEL. Discover how thousands of sites around the world have improved access to iSeries data using SEQUEL's Windows- and Web-interfaces. It's the one tool you can rely on for virtually all your iSeries data access needs.
FREE trial available.
Read More about SEQUEL
|
|