Re: Creating tab delimited files
- From: "Richard" <riplin@xxxxxxxxxxxx>
- Date: 21 Feb 2007 15:50:27 -0800
On Feb 22, 11:36 am, "Pete Dashwood"
<dashw...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Yes, as usual, Howard, you make good sense.
It is pretty trivial to create XML from a COBOL program (assuming you can't
simply plug in an existing XML component as you probably would in an OO
environment). There has been some discussion on this in the "Bridging the
Gap" topic, where both Richard and I have advocated using a a templated
approach for XML generation.
Guess how I output CSV files
# template acreport.file for writing file
#
# ----------------------------------------------------------
*CSV
*ADDCR
:header
Content-Type: application/csv; charset=ISO-8859-1;
Content-Disposition: attachment; filename="<!%extract%>";
<head><title><!%extract%></title></head><body><pre>
:glcoderow
"<!%glcode%>","<!%po%>","<!%supplier%>","<!%loc%>","<!%costcent%>",<!
%amount%>,<!%accrue%>,"<!%user%>","<!%date%>","<!%name%>"
:trailer
</pre></body></html>
:end
This one is from a web based system. It get thrown at the browser for
saving on their local machine, or directly into
Excel^H^H^H^H^HOpenOffice.org Calc.
If they want an XML file or HTML, or EDIFAC or TAB separated, just
change the template.
.
- References:
- Creating tab delimited files
- From: jmoore207
- Re: Creating tab delimited files
- From: foodman
- Re: Creating tab delimited files
- From: Pete Dashwood
- Re: Creating tab delimited files
- From: Howard Brazee
- Re: Creating tab delimited files
- From: Pete Dashwood
- Creating tab delimited files
- Prev by Date: Re: Creating tab delimited files
- Next by Date: Re: Creating tab delimited files
- Previous by thread: Re: Creating tab delimited files
- Next by thread: Re: Creating tab delimited files
- Index(es):
Relevant Pages
|