|
That was quite hard to read until I replaced one period with a question mark. Will VARLEN get rid of the trailing spaces? Yes. Will CPYTOIMPF give you the column headings? No. But I suppose you could fake that by doing a CPYTOIMPF of just a heading file, then do a CPYTOIMPF with *ADD for the data. Will CPYTOIMPF give you tilde's? Yes. Will CPYTOIMPF give you a < at the end of a record? No, but you can choose from CR, LF, CRLF, LFCR Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Bill Hopkins" <BHopkins@xxxxxxxxxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 09/24/2003 10:48 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> cc Subject Re: Trailing Blanks with CPYTOIMPF v5r1 Sorry about that example file results not the way I typed once it got to list. Hope it work now. So just to get to the point can I get something like this through VARLEN and CPYTOIMPF. To get rid of trailing blanks. Field1~Field2~Field3 1111~11111111~1111111< 22~222~22222222< 3333333~333~3333< or at least Field1 ~Field2 ~Field3 < 1111 ~11111111~1111111 < 22 ~222 ~22222222< 3333333~333 ~3333 < Please do not ask why they want Tilde and not Tab or Comma. :) Thanks Bill Hopkins _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.