|
Dave: Thank you for the explanation. Bruce -----Original Message----- From: Dave Wall <dawall@us.ibm.com> To: JAVA400-L@midrange.com <JAVA400-L@midrange.com> Date: Thursday, February 01, 2001 9:31 PM Subject: Re: How to set up Library List when call RPG using ToolBox? > >A couple thoughts that should help ... > >When calling a program via Toolbox ProgramCall you are getting to the >program via the iSeries's DPC server. The DPC server handles both program >call and command call. When you connect (or under the covers the Toolbox >connects for you), the server job swaps to the specified user profile. At >that point the library list is the list set up for that user. > >The Toolbox "AS400" object is responsible for connections to the iSeries. >There is a different job at the end of each connection. A specific AS400 >object can have only one connection per service. The job stays around >until the connection is ended. > >So, if you use the same AS400 object for a series of Program and Command >calls, those calls will go to the same job. If you want to change the >library list you can run the chglibl command via command call before >running your program. The correct iSeries job will be changed as long as >you use the same AS400 object, and the connection does not drop between the >command call and the program call. > >David Wall >AS/400 Toolbox for Java > > >"Bruce Jin" <brucej@MRC-PRODUCTIVITY.COM>@midrange.com on 01/31/2001 >08:09:11 AM > >Please respond to JAVA400-L@midrange.com > >Sent by: owner-java400-l@midrange.com > > >To: <JAVA400-L@midrange.com> >cc: >Subject: How to set up Library List when call RPG using ToolBox? > > > >What is my library list when I call RPG using ProgramCall API? >Can I call a command ADDLIBLE to add a library before using ProgramCall? >Or should I simply call a CL and have the CL PGM call RPG? > >It appears that when the file and the RPG program are in the same library, >I >don't have to worry about library list. > >TIA. >Bruce > > >+--- >| This is the JAVA/400 Mailing List! >| To submit a new message, send your mail to JAVA400-L@midrange.com. >| To subscribe to this list send email to JAVA400-L-SUB@midrange.com. >| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. >| Questions should be directed to the list owner: joe@zappie.net >+--- > > > >+--- >| This is the JAVA/400 Mailing List! >| To submit a new message, send your mail to JAVA400-L@midrange.com. >| To subscribe to this list send email to JAVA400-L-SUB@midrange.com. >| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. >| Questions should be directed to the list owner: joe@zappie.net >+--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.