[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with ftp_put



Sender: Scott Klement <klemscot@xxxxxxxxxxxx>



On Fri, 18 Oct 2002 Brian@xxxxxxxxxx wrote:
>
> So, I have changed the program to do a CHGCURDIR and to use "TEST.FILE" and
> now I get:
>       "Unable to retrieve an object description!  "

Hmmm... I wonder why it's saying that?   Can you run it in debug, put a
break point after the line that does the 'callp RtvObjd' (around line 4350
in my copy of FTPAPI) and tell me what the contents of the dsEC data
structure are at that point?

I'll have to add code to log this stuff to the job log for easier
debugging...

>
> Previously  by switching to namefmt 1 and using the .SAVF suffix I could
> avoid having to create the target save file before putting it.  Is this no
> longer the case?  Do I now have to create a save file on the target AS/400
> before doing the put?

Well, you're doing a PUT, which means you're sending from the FTPAPI
client to some other FTP server.  (Probably IBM's running on another
AS/400, I'm guessing by the way you're saying this) So, it's not FTPAPI
that needs to create the save file, it's the FTP server.

Perhaps what you need to do is send different names for the "remote"
filename vs. the "local" filename?

i.e. do something like this:

               FTP_put(sess: '/qsys.lib/mylib.lib/myfile.savf':
                             '/qsys.lib/mylib.lib/myfile.file')

Where the first line is the "remote" filename (the one received by the
FTP server) and the second line is the "local" filename (the one that
FTPAPI uses to read the file from disk)

>
> Thanks for putting up with me on this.
>

No problem.  Thanks for providing me with feedback about FTPAPI.  Without
messages like yours, I would have no idea what people found difficult
about it.


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------