On 19-Jan-2012 10:51 , Scott Klement wrote:
My suggestion is to have an RPG program that outputs a normal,
externally defined PF that contains the fields you want, and the
records are in the sequence you want. Then use CPYTOIMPF to convert
it to a pipe-delimited file.

FWiW: If the "sequence" of records in the stream text file matters, then CPYTOIMPF may be a poor choice. That copy\export utility uses the SQL to generate an _unordered set_ of database rows which are then written to a stream text file. So unless there is an ordering feature [e.g. a parameter specification] on the version of the [CPYTOIMPF] export command being used, do not depend on the exported data to be in any particular order.

Regards, Chuck

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.