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


  • Subject: RE: Best method for moving AS/400 data to PC
  • From: "Gary R. Patterson" <midrange-l@xxxxxxxxxxxxx>
  • Date: Fri, 1 Sep 2000 19:03:11 -0500
  • Importance: Normal

Don't know if this is the best way, but it suits my purposes:

One easy way to download to Excel (or other PC applications) is to use
CPYTOIMPF to convert DB2/400 to a CSV stream file, then use an ASCII FTP
session to download it to the PC.  Excel works fine with CSV's.  The thing I
like about this method is that it requires noting (except TCP/IP) on the
client PC, plus TCP/IP and and FTP server on the AS/400.  No Client Access,
no special software, nothing to install or configure on the PC.

CPYTOIMPF FROMFILE(MYLIB/MYFILE MEMBER)
          TOSTMF('\MYDIR\MYFILE.csv')
          MBROPT(*REPLACE)
          RCDDLM(*CRLF) DTAFMT(*DLM)
          STRDLM('"')
          FLDDLM(',')

>From the PC:
c:\>FTP MYAS400
User: xxxxxxxxxxxx
Password: xxxxxxxxxxxx
>ascii
>get \mydir\myfile.csv c:\download\myfile.csv
>bye

Excel opens CSV's and puts each field in its own column.

Gary R. Patterson
NexSource, Inc.

980 N Michigan Ave, Suite 1400
Chicago, IL 60611
(312) 214-3526

640 W. Main St.
Louisville, KY 40202
(502) 581-0106

Information technology services for business
http://www.nexsource.com

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.