× 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 need to clarify.  The resulting file must be an "exact" image of the
AS/400 file as if viewing via DSPPFM.  The record length must be the
same in both files.  No delimiters and surrounding quotes allowed.  BTW
& FWIW, the last byte in the record is usually blank (the last field is
a description field).

--- "Lauritzen, Karl" <KLAURITZEN@natlloyds.com> wrote:
> Try this
>
> CPYTOSTMF  +
> FROMMBR('/qsys.lib/yourlib.lib/yoursrc.file/yourfile.file +
>              TOSTMF('/IFS/downloadedfilename.txt') +
>              STMFOPT(*REPLACE) STMFCODPAG(*PCASCII)
> CPYTOIMPF  FROMFILE(yourlib/yourfile) +
>              TOSTMF('/IFS/downloadedfilename.txt') +
>              MBROPT(*REPLACE) RCDDLM(*CRLF) FLDDLM(X'05')
>
> Creates a text file comma delimited with " around each field.
> You can then import this file into Excel or wherever.
>
> I had a hard time at first too with this but now I use it all the
> time.

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


As an Amazon Associate we earn from qualifying purchases.

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