PDA

View Full Version : FTP library list



Guest.Visitor
03-17-2003, 05:51 AM
Scott, The only way I know how to do that is to change the library list of the job description the FTP job's userid signs on to the iSeries with. Also, what are you trying to do on the 400 using FTP? I know there is a way (I've done it before) to transmit a file to the 400 and then send it an REXEC command from the sender that causes a CL program to start. Hope this helps. Doug.

Guest.Visitor
03-17-2003, 08:39 AM
Scott Walker wrote: > I am trying to call an RPG program within an FTP script from a PC. Is > there a way to add libraries to the FTP job's library list? Scott, Why not just wrap it in a CL that sets the library list? Bill

Guest.Visitor
03-18-2003, 03:18 PM
Here is the problem. I have an FTP that sends a file down and then calls a CL program. Within the CL it calls an RPG. The RPG has files declared and blows up since the files are not in the libl. I have tried adding libs on the fly with FTP and within the CL to no avail. I would hard code with a jobd but we promote objects up through a change control process and hard-coding libraries is a last option. Any suggestions? Thanks, Scott

S.Mildenberger
03-19-2003, 05:12 AM
I don't understand when you say it would work by adding libraries to the library list in the CL. I still think it is a good idea to run it with a set job description that has the proper library list. Scott Mildenberger

Guest.Visitor
03-20-2003, 05:14 AM
Scott, Another way to go (with an extra step) is to have FTP send down the files and call a CL. Then make that CL set up the library list and call or submit the RPG program. Also, make sure that the QTCP userid (the one FTP initially signs on with) has access to the libraries you are using, in terms of authority. I had this same problem, and the issue was that the QTCP userid did not have proper authority to the library and could not get all the objects. Check the joblogs under that userid to see if anything else is causing your problem. Hope this helps. Doug.

Guest.Visitor
03-20-2003, 07:49 AM
No idea why it is not working. I created a new CLP that calls another CLP with a declare file within it. When I add libraries at the FTP command itself, it works with no problem. For some reason the RPG being called does not address the libs in the library list. It only works if the library it the "Current" library in the user's list that is signed on at the FTP session. Object authorities has been ruled out. I will post the answer if I ever figure this out. Thanks for your help. Scott

Guest.Visitor
03-20-2003, 03:52 PM
Scott, Have you checked the library list that is listed in your program dumps? Why not insert a DSPJOBLOG output(*PRINT) inside your CLP prior to calling the RPG program? The resulting spool may give us some clues.

Guest.Visitor
03-21-2003, 02:36 PM
Scott, Is/are there any ILE programs in this job stream? It kinda sounds like you might have file overrides not being scoped properly. Bill Scott Walker wrote: > No idea why it is not working. I created a new CLP that calls another > CLP with a declare file within it. When I add libraries at the FTP > command itself, it works with no problem. For some reason the RPG > being called does not address the libs in the library list. It only > works if the library it the "Current" library in the user's list that > is signed on at the FTP session.

Guest.Visitor
11-20-2003, 04:47 AM
I am trying to call an RPG program within an FTP script from a PC. Is there a way to add libraries to the FTP job's library list? Thanks, Scott

Guest.Visitor
11-20-2003, 04:47 AM
If programs use *CURLIB instead of *LIBL for the library, you will have to be sure to set the current library to the correct library before calling the program. From the FTP you could do a QUOTE RCMD CHGCURLIB CURLIB(SOMELIB), then call the program.