× 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.



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

-----Original Message-----
From: Steve McKay [mailto:Steve.McKay@SouthTrust.com]
Sent: Wednesday, November 14, 2001 10:03 AM
To: midrange-l@midrange.com
Subject: Re: Creating CSV files on the IFS



Loyd -

Oops - sorry, make that CPYFRMIMPF/CPYTOIMPF commands . . .

Steve

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.