If you changed the section delimiters as you stated earlier you need to
make the same changes in your RGP program. I still believe the problem is
spaces before the headers. because you are indenting the section headings.
To CGIDEV2 '<-- $top$ -->' is different from ' <-- $top$ -->'. the extra
will cause what you are seeing.
"Florin Todor - YYZ Concord" <ftodor@xxxxxxxxxxxxxxxx>
"RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
08/25/2008 03:09 PM
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
I don't use the ClrHtmlBuf() at all; is it possibly to run somehow in
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
FED204D03WKIF E K DISK
'<!-- $':'$ -->':'/%':'%/');
Dow not %eof(ED204D03WK);
*inlr = *on;
I post again the HTML Source, maybe I cannot see something...
<!-- $TOP$ -->
<!-- $HEADERPO$ -->
<TABLE BORDER=4 WIDTH=100%>
<TH>Seller ID #</TH>
<!-- $DETAILPO$ -->
<!-- $END$ -->
[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
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
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
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,
Do you do anything between the wrtsection('top') and the
Are there any special characters on the line before or after the <!--
$HeaderPo$ --> that might cause it to fail?