|
you could do a CPYTOIMPF using something unique as your delimiter, (like a pipe? '|' ) and then read and scan the resulting file using the ifs c functions for that char and replace it with the hex value for a tab. a pain, but doable i think. rick "John Cunha" <John.Cunha@xxxxxx To: <rpg400-l@xxxxxxxxxxxx> il.com> cc: Sent by: Subject: Tab delimited... again rpg400-l-bounces@x idrange.com 07/17/03 09:33 AM Please respond to RPG programming on the AS400 / iSeries Hello. I would like to thank Scott Klement [klemscot@xxxxxxxxxxxx] for the great help he gave me. Once again... Thanks Scott! Now my challenge: We have to send files which "MUST" be tab delimited to a third party vendor. We have a way of doing that; however it entails writing separate RPG programs for every file, since they all have different record layouts/fields/lengths. Does anyone have or know of a generic utility that can do this for any file? Thanks for the help! John Cunha Northern Group Retail Ltd _______________________________________________ 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.