× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



CPYTOIMPF doesn't trim.  It ought to.  I've always been curious what the
difference between CA file transfer and CPYTOIMPF is.  It seems like they
should be using at least some of the same things.

> -----Original Message-----
> From: Goodbar, Loyd (AFS-Water Valley)
> [mailto:LGoodbar@afs.bwauto.com]
> Sent: Wednesday, November 14, 2001 9:04 AM
> To: 'midrange-l@midrange.com'
> Subject: RE: Creating CSV files on the IFS
>
>
> I *am* using the CPYTOIMPF command.
> Problem is, I have a field with this data (no quote marks)
> "Item           ""Category  "
> "125000AAZ      ""SOLENOIDS "
>
> CPYTOIMPF will make a CSV file form this, but it looks like:
> Item           ,Category  <CRLF>
> 125000AAZ      ,SOLENOIDS <CRLF>
>
> I want the data to look like
> Item,Category<CRLF>
> 125000AAZ,SOLENOIDS<CRLF>
>
> Data transfer from the AS400 correctly trims spaces from
> character data when
> it downloads. CPYTOIMPF doesn't appear to (on my system V4R5).
>
> I could manually dump the data, trim spaces, and add commas
> into a single
> field work file that I could then run through CPYTOSTMF. I
> would rather not
> do that, if OS400 has a command to correctly trim the
> character data when
> creating a CSV file. Well, it doesn't know it's a CSV file, but if you
> change the DTAFMT parameter to *DLM, it should be smart
> enough to trim the
> data (being the whole point of delimiting it). I understand that using
> DTAFMT(*FIXED) would preserve trailing spaces, and it should.
>
> Loyd
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.