Scott, I run again the program and now I got the error for 'top'
section, too (probably I miss it to enclose in my post at the first
time...)

I don't use the ClrHtmlBuf() at all; is it possibly to run somehow in
the background?

I call GetHtml only once at beginning of the program (see below)

I checked the lines with the section names; I cannot see anything before
or after....


Hdftactgrp(*no)
*
/copy cgidev2/qrpglesrc,hspecs
/copy cgidev2/qrpglesrc,hspecsbnd
*
FED204D03WKIF E K DISK
*
/copy qrpglesrc,prototypeb
/copy cgidev2/qrpglesrc,usec
*
/Free
Gethtml('HTMLSRC':'INTRANET':'MAD204HTM1':
'<!-- $':'$ -->':'/%':'%/');
Wrtsection('top');
Wrtsection('HeaderPO');
Read ED204D03WK;
Dow not %eof(ED204D03WK);
UpdHTMLvar('Stop' :%char(D3snum));
UpdHTMLvar('PO' :D3po#);
UpdHTMLvar('SellerID':D3selid);
Wrtsection('DetailPO');
Read ED204D03WK;
Enddo;
WrtHtmlToStmf('/Reporting/Table.html':819);
Wrtsection('end');

*inlr = *on;
Return;

/End-Free

I post again the HTML Source, maybe I cannot see something...

<!-- $TOP$ -->
Content-type: text/html

<html>
<head>
<title>Bills information</title>
</head>

<BODY>
<!-- $HEADERPO$ -->

<TABLE BORDER=4 WIDTH=100%>
<TR ALIGN="Center">
<TH>Stop#</TH>
<TH>P.O.#</TH>
<TH>Seller ID #</TH>
</TR>

<!-- $DETAILPO$ -->

<TR ALIGN="Center">
<TD>/%Stop%/</TD>
<TD>/%PO%/</TD>
<TD>/%SellerID%/</TD>
</TR>
<!-- $END$ -->
</TABLE>
</BODY>
</html>


Florin Todor


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Monday, August 25, 2008 2:34 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: CGIDEV2

Hi Florin,

Florin Todor - YYZ Concord wrote:
WrtSection: Section HEADERPO not found.
WrtSection: Section DETAILPO not found.
---------------------------------------
WrtSection: Section END not found.

Hmmm... we know a little more, now. We know that it's unable to find
those sections.

Interestingly, there's no error for the 'top' section -- yet, your code
clearly shows you writing the 'top' section. You say that your output
file is blank -- how would that be if you're writing the 'top' section
successfully?

Do you use ClrHtmlBuf() at all, that it might be wiping out that 'top'
section before populating the IFS file?

You aren't calling GetHtml or GetHtmlIfs again after the initial time,
are you?

Do you do anything between the wrtsection('top') and the
wrtsection('headerpo')?

Are there any special characters on the line before or after the <!--
$HeaderPo$ --> that might cause it to fail?


This thread ...

Follow-Ups:
Replies:

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

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