Thanks for the tip on CPYTOIMPF! 
I didn't know about that one.


-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx]On Behalf Of Winchester Terry
Sent: Tuesday, March 09, 2004 8:47 AM
To: 'COBOL Programming on the iSeries/AS400'
Subject: RE: [COBOL400-L] Downloading from COBOL to a .csv

You can also use the CPYTOIMPF command which is a little
more flexible for creating delimited files.

>                  (snip for bandwidth)  
> By the way, if you don't want to write a CSV file to the IFS 
> using COBOL,
> you might try using COBOL to create a temporary DB2 database 
> file, then use
> the CL command CPYTOSTMF to write the temporary DB2 database 
> file to an IFS
> stream file. If you set the ENDLINFMT parameter to *FIXED you 
> should get a
> fixed width text file in the IFS. Microsoft Excel can open 
> fixed width text
> files. 
> Thanks,
> Kelly
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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

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