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





> CPYF FROM(MYLIB/MYDBF) TO (QNTC/MYNTSERVER/MYDBF.TXT) FIELDS
(*FIXEDLENGTH)
>The idea is to put some databases on an NT server so that MS Access can
>play about with them, without the long long wait associated with ODBC. The
>databases are created over night, so real time access isn't an issue.
>Steven Donnellan


Personal opinion,  If you just want to write a Fixed Length .TXT file to
directory
QNTC/MYNTSERVER    I would do it from RPGIV.  Very Easy.  That way you
would
have control and do other things like Reading One file,  Chaining to
another
format the output fields in what ever order you wanted easily.

The one thing I see wrong with CPY (and all variations) is that you have to
do gymnastics to get the Source file right to do the copy.   With RPG,  I
can
leave all the info in my Normalized files and just read/chain, etc to
format the
output record and write directly to a PC file format.  No intermediate work
file
to get it there.

I have many Production programs that do this exact thing.  Mostly to a .CSV
file
which people then access via Excel.   I even have an exit routine in
certain
Add/Change/Delete file maintenance programs to write the file to the IFS
upon exit
 if any record was changed.  This way my DB2 file is always in sync with my
PC file on the IFS.


I will be showing this Technique at COMMON in one of my sessions.

John Carr






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.