× 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 was trying to get a COBOL program to generate a
report that displayed as a web page.  My first
strategy was to make a COBOL program write an XML
file.  This proved more of a headache than it was
worth.

The strategy that worked for me was to: (1) CALL a
COBOL program that writes a report in HTML format to a
DB2 flat file, (2) use the copy to PC document command
(CPYTOPCD) to transform the DB2 file into a text file,
and (3) use the send distribution command (SNDDST) to
email the web page report to users.  All these steps
were carried out within a CL program.

I'm still experimenting with writing directly from
COBOL to stream files.  It would cut out the CPYTOPCD
processing.

Just for the curious, the problems I had with XML
included:
(1) the end-of-file label added to text files by
commands like CPYTOPCD and CPYTOSMF disrupts the
well-formedness of the XML document,
(2) an ampersand ('&') between tags can disrupt the
well-formedness of the XML document (and many of our
corporate partner names have an '&' in them), and
(3) the rendering of XML as a web page using XSL was
noticably slower than the loading an HTML document
into the browser (this is an issue with larger
reports).

Thanks for the help! I really value this list.

Kelly Cookson


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com


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.