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

RE: Problem with FTP_GET, FTP_BINARY when downloading mixed file types



Ye.. blanks.  Hex 20
You can't do the trim but before anyone said anything I tired that...lol
It looks like I'm going to have to copy it to a 400 file then cpytostmf
for those blanks to get out


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Thursday, May 27, 2010 4:32 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Problem with FTP_GET, FTP_BINARY when downloading mixed
file types

When you say '202020', do you really mean that it has those characters 
in the record?  Or do you mean that there are blanks (which happen to be

hex 20 in ASCII)?

You say you're transferring from the IFS.  I didn't think you could do a

trim from the IFS?  I thought the trim was just on record-based files 
(since they have a fixed record length, so you need to have a way to 
deal with converting to a variable-length stream.)

Perhaps the problem comes when you create the IFS file, rather than when

you transfer it?

On 5/27/2010 2:56 PM, Ron Koontz wrote:
> Its going to a Unix server and we are putting the files from our IFS
to
> there server. I have tried all the trims and still getting 202020
> (*blanks)
> It has to be something simple...  I'm just not seeing it
>
>
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Bak, Doug
> (LMF)
> Sent: Thursday, May 27, 2010 3:47 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: RE: Problem with FTP_GET, FTP_BINARY when downloading mixed
> file types
>
> You have to ensure that you're using ASCII transfers and LOCSITE TRIM
2:
>
> TRIM 0
> Set Trim option to OFF. The FTP server sends trailing blanks of
database
> records.
> TRIM 1
> Set Trim option to ON. The FTP server does not send trailing blanks of
> database records when transferring database files that use file
> structure and stream mode. This is the default.
> TRIM 2
> Set Trim option so the server does not send trailing blanks of
database
> records for all transfers, including record structure and block mode.
>
> TRIM
> Display a message that contains the current setting of the FTP client
> TRIM option.
>
> Notes:
> 1.Prior to the availability of this subcommand, trailing blanks of
> QSYS.LIB file system records were always removed before transferring
the
> file to the FTP server.
> 2.TRIM settings do not apply to TYPE I (binary) file transfers. Blanks
> are never trimmed for TYPE I file transfers, regardless of the TRIM
> setting.
>
> We had to use this option recently to transfer files to a remote
Windows
> system, works great!
>
> Doug
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ron Koontz
> Sent: Thursday, May 27, 2010 12:19 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: RE: Problem with FTP_GET, FTP_BINARY when downloading mixed
> file types
>
> Since you all are talking about FTP
> Any one know how to get rid of trailing blanks when a file from the
400
> is being FTP's. IO have tried everything. It puts 2020202020 on the
end.
>
>
> Thanks
> Ron
>
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Henrico,
> Pieter
> Sent: Thursday, May 27, 2010 11:58 AM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: Problem with FTP_GET, FTP_BINARY when downloading mixed
> file types
>
> Hi
>
> I have attached the source code to this mail, and it is a working
> version. I have tested it again with my test files and the problem is
> the same.
>
> Thanks
>
>
> Pieter
>
>
>
> The information contained in this email is confidential and may
contain
> proprietary information. It is meant solely for the intended
recipient.
> Access to this email by anyone else is unauthorised. If you are not
the
> intended recipient, any disclosure, copying, distribution or any
action
> taken or omitted in reliance on this, is prohibited and may be
unlawful.
> No liability or responsibility is accepted if information or data is,
> for whatever reason corrupted or does not reach its intended
recipient.
> No warranty is given that this email is free of viruses. The views
> expressed in this email are, unless otherwise stated, those of the
> author and not those of HYPHEN Technology (Pty) Ltd or its management.
> HYPHEN Technology (Pty) Ltd reserves the right to monitor, intercept
and
> block emails addressed to its users or take any other action in
> accordance with its email use policy.
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
>
-----------------------------------------------------------------------
>
>
>
> ******* Confidentiality Notice *******
> This email, its electronic document attachments, and the
> contents of its website linkages may contain confidential
> health information. This information is intended solely
> for use by the individual or entity to whom it is
> addressed. If you have received this information in error,
> please notify the sender immediately and arrange for the
> prompt destruction of the material and any accompanying
> attachments.
>
>
>
-----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------