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

Re: PROBLEM USING TESTMGET



Hi Pasquale,

What you are doing is creating the file name '/QSYS.LIB/LIBFTPRCV.LIB/' +
  %TRIM(PIPPO.TXT)+ '.FILE' and you are omitting the file member name.

A file with the name PIPPO.TXT will be accepted, but if you are getting 
other file names exceeding a total of 10 characters, or containing invalid 
characters, you will be getting an error, just based on the file name. 
Therefore, I would suggest to always name the file yourselves, so to ensure 
the name is valid and not whatever was the name of the file you received. 
Just store the original filename into the file description of the physical 
file parameter TEXT..

I think therefore that the problem will be in the omitting of the member 
name fiollowed by the .MBR extention.

Kind regards,

Loek Maartens.

----- Original Message ----- 
From: <P.Leone@xxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, July 28, 2010 7:00 PM
Subject: Re: PROBLEM USING TESTMGET


> hi,
> fileno value PIPPO.TXT ( my file name)
>
> saluti
>
> Prof. Pasquale Leone
> Comed S.r.l.
> Centro Direzionale Isola G7 - 80143 Napoli
> Tel: 081-7877263 Cell.: 348-3703055
> p.leone@xxxxxxxx
> www.comed.it
>
>
>
>
>
> Michael Ryan <michaelrtr@xxxxxxxxx>
> Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> 28/07/2010 18:51
> Please respond to HTTPAPI and FTPAPI Projects
>
>
>        To:     HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
>        cc:
>        Subject:        Re: PROBLEM USING TESTMGET
>
>
> Buon giorno Professorre Leone -
>
> What's the value of fileno when you look at it in debug?
>
> porgiamo distinti saluti...
>
> - Michael
>
> (I'll be in Napoli in September...woo hoo...vacation!)
>
> On Wed, Jul 28, 2010 at 12:10 PM, <P.Leone@xxxxxxxx> wrote:
>
>>
>>   hi,
>>   I have a problem using the program TESTMGET modified to write in a
>>   library as400.
>>   the problem that occurs is that the file is created, but with empty
>>   content.
>>   clearly I used the syntax namefmt = 1  in function FTP_GET
>>   * download the rest of the files
>>
>>                     if        ftp_get(fd: incoming(fileno):
>>                                    '/QSYS.LIB/LIBFTPRCV.LIB/' +
>>                               %TRIM(incoming(fileno))+ '.FILE')>=0
>>                     eval      gotfiles = gotfiles + 1
>>                     endif
>>
>>                     enddo
>>   any suggestions?
>>   thanks
>>   PS  my OS400 is V5R2M0
>>     _________________________________________________________________
>>
>>   Prof. Pasquale Leone
>>   Comed S.r.l.
>>   Centro Direzionale Isola G7 - 80143 Napoli
>>   Tel: 081-7877263 Cell.: 348-3703055
>>   [1]p.leone@xxxxxxxx
>>   [2]www.comed.it
>>     _________________________________________________________________
>>
>> References
>>
>>   1. mailto:p.leone@xxxxxxxx
>>   2. http://www.comed.it/
>>
>> -----------------------------------------------------------------------
>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> -----------------------------------------------------------------------
>>
>>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
>
>


--------------------------------------------------------------------------------


> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
> 

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------