Adam Lang wrote:

> I agree.  Your RPG program SHOULDN'T write the html.  That would mean
> everytime you want to redesign your pages, you need to recompile.

It doesn't need to mean this.  I have separated all the presentation logic for
my neural database tool into one RPG program.  This inserts 5250 attributes or
HTML or PCL escape codes into the datastream on the fly.  This one program does
the lot - it is used used for both the development and the operational
environments. With observability removed, it is less than 1Mb of code. It
generates sub-files, but I haven't used SFLCTL, etc. keywords for many years.
The screen, web page and print definitions are stored in the database along with
the user data, so if you want to change the layout, you change the database, not
the RPG.  It could easily generate XML as well if I could find a use for it.

> It also
> means your RPG programmer has to be your web deveoper too, or atleast have
> extremely good communication with him..
> Your RPG code should just return straight data.  Then you have your ASP page
> actually do the formatting.
> Adam Lang
> Systems Engineer
> Rutgers Casualty Insurance Company
> ----- Original Message -----
> From: "Walden H. Leverich" <>
> To: <>
> Sent: Friday, January 04, 2002 11:24 AM
> Subject: RE: Web enablement options (previously private)
> > > The RPG program writes the HTML page.
> >
> > Ah, but then you haven't completely separated your business logic from
> your
> > presentation have you? Sure you could change the layout of the page, but
> > what about using the same logic to process XML, or exposing that logic via
> a
> > Web Service using SOAP? You'd have to rewrite the AS/400 program again,
> no?
> >
> > -Walden
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
> To post a message email:
> To subscribe, unsubscribe, or change list options,
> visit:
> or email:
> Before posting, please take a moment to review the archives
> at

Best wishes


Erros plc

44 (0) 1844 239 339 - The AS/400 Neural Database for the Internet


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.