+ Reply to Thread
Results 1 to 10 of 10

Thread: FTP library list

  1. #1
    Guest.Visitor Guest

    Default FTP library list

    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.

  2. #2
    Guest.Visitor Guest

    Default FTP library list

    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

  3. #3
    Guest.Visitor Guest

    Default FTP library list

    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

  4. #4
    S.Mildenberger Guest

    Default FTP library list

    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

  5. #5
    Guest.Visitor Guest

    Default FTP library list

    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.

  6. #6
    Guest.Visitor Guest

    Default FTP library list

    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

  7. #7
    Guest.Visitor Guest

    Default FTP library list

    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.

  8. #8
    Guest.Visitor Guest

    Default FTP library list

    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.

  9. #9
    Guest.Visitor Guest

    Default FTP library list

    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

  10. #10
    Guest.Visitor Guest

    Default FTP library list

    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.

+ Reply to Thread

Similar Threads

  1. Library list
    By Guest.Visitor in forum Dev Tools
    Replies: 7
    Last Post: 05-29-2002, 03:36 PM
  2. Establishing Library List
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 04-16-2001, 08:03 AM
  3. Compile Doesn't Find Library in the User Library list
    By sbarkley@magmail.com in forum Programming
    Replies: 0
    Last Post: 03-06-2001, 02:07 PM
  4. Duplicate library in library list
    By Guest.Visitor in forum Analysis
    Replies: 5
    Last Post: 02-09-2000, 12:11 PM
  5. Library list for JDBC
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 08-23-1999, 02:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts