Re: PROBLEM SOLVED - State of WORKING-STORAGE in Statically-Called Subroutines

From: LX-i (lxi0007_at_netscape.net)
Date: 12/18/03


Date: Thu, 18 Dec 2003 07:07:33 -0600

Michael Mattias wrote:

> "LX-i" <lxi0007@netscape.net> wrote in message
> news:vu1p1sslpbqc7c@corp.supernews.com...
>
>>docdwarf@panix.com wrote:
>>Isn't it strange how you can find an answer you weren't even looking for
>>by researching something else?
>
>
> I do that a lot.
>
> I usually stumble across answers for 'old' questions about twelve minutes
> after spending two hours 'solving' the old challenge using some tortuous
> and obtuse method.

When I first got here, I knew little about COBOL or most any other
programming language (most of my experience was with Commodore 64
BASIC). We were releasing a new version of the database for Y2K, and
there was a help file for the currently fielded version. However, the
developer that did that was gone. I piped up and said I would do it -
it would be something to get my hands on...

Anyway, the database is laid out like COBOL records (01, 05, 10, etc.).
  I went through the entire database, making static HTML pages that used
tables and cells to align all the 05-levels together, all the 10-levels
at another level of indention, etc., and all the picture clauses aside
from that. Took me around 2 months to complete. Straight HTML - no CSS.

Once I had finished this task, I was looking through a list of HTML tags
and found the <PRE> tag. This tag (for those who don't know) tells the
page you have preformatted text - it preserves the whitespace, carriage
returns, etc. So, what took 2 months, I could have done
<PRE><Ctrl-V></PRE> - probably finished the whole thing in a day. :)

Now, I have all the items in a database, and I generate XML from the
database. I then format these using XSLT. It's great - if I want an
up-to-date copy, I can just regenerate every page with one click, and it
pulls the most recent data definitions. :)

> Then I utter an expletive.

I think I was a little past that when I found that <PRE> tag. The
ironic thing (well, sort of) is that the XSLT uses, to align the
COBOL... tables and cells. (Of course, it's much smarter than that
original setup - I'm actually quite happy with the new stuff.)

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~   /   \  /         ~        Live from Montgomery, AL!       ~
~  /     \/       o  ~                                        ~
~ /      /\   -   |  ~          LXi0007@Netscape.net          ~
~ _____ /  \      |  ~ http://www.knology.net/~mopsmom/daniel ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~         I do not read e-mail at the above address           ~
~    Please see website if you wish to contact me privately   ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Relevant Pages

  • Re: grid structures: TABLE/TR/TD vs. DIV
    ... But the list is being produced by some database program you ... JavaScript and bindings/behaviours). ... Or take the ouput HTML and feed it through another level or processing ... the production of the HTML via XSLT is entirely in my hands. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Writing data to HTML file BEFORE the tag.
    ... *Replaced the PHP short open tag w/ the longer one. ... to append the user comments to the end of the referring HTML document. ... Let's say that I want to put the comments in a database, ...
    (comp.lang.php)
  • extra whitespace in select objects
    ... How do I leave the extra whitespace inside a select object after I retrieve ... it from the database? ... I tried using the tag while generating the list, ... I extracted it from the generated HTML, so, basically, it's an HTML ...
    (alt.php)
  • Re: php/mysql grid app?
    ... table in HTML, the first column and row are labels, and the rest are ... The HTML file would also have some PHP above the tag which ... more sense to have a flat file, instead of a database. ...
    (alt.php)
  • Re: Newbie problem! Using <%=%> to output HTML in JSP
    ... I should probably know this but I have some HTML in a variable (loaded ... from a database), and want to output it to a JSP file (you know what I ... quite know specific keywords that aren't too general. ... You can use escapeXml=false in the c:out tag that Lew pointed out, ...
    (comp.lang.java.programmer)