I have developed a system that uses a distinct value (such as your company number) as the primary key in a database table. The record format of the table also contains a sequential number field (for sorting) and a text field to store a library name. Each record for a given "company" contains one library that is used to make up the library list.
I have written procedures that accept the company number as input, read through the library list table, and execute the ADDLIBLE program for each record read. A call to this procedure is executed at the beginning of each CGI program. When I'm finished and performing my clean up routine, I call another procedure that does the same thing, but this time executes the RMVLIBLE command.
That's how I handle it. Let me know if you have any interest in further details.
Michael
"Huyck, Bruce" <[EMAIL PROTECTED]> wrote:
I have written procedures that accept the company number as input, read through the library list table, and execute the ADDLIBLE program for each record read. A call to this procedure is executed at the beginning of each CGI program. When I'm finished and performing my clean up routine, I call another procedure that does the same thing, but this time executes the RMVLIBLE command.
That's how I handle it. Let me know if you have any interest in further details.
Michael
"Huyck, Bruce" <[EMAIL PROTECTED]> wrote:
We have to change our existing CGIDEV2 programs to support multiple companies. Based on a user ID we will determine which company a specific customer belongs.Once the company number has been established, we need to override the data files to a company specific data library. We will be calling existing RPG and CLP programs during normal processing. Changing CURLIB does not appear to be an option. We could write a CLP to change lib list entry.The example programs show the overrides taking place in the CGI programs, but this would require extensive program changes.Has anyone done this and if so, what method did you use to accomplish this?Bruce HuyckPaducah & Louisville Railway
Yahoo! FareChase - Search multiple travel sites in one click.
YAHOO! GROUPS LINKS
- Visit your group "Easy400Group" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
