× 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.



It sure seems to me like there is either a typo in the library/file/source
member GetHTML and/or user QTMHHTP1 doesn't have proper authorties to the
file.

I've written thousands of CGIDEV2 problems and never ran into this.

Bradley V. Stone
BVSTools - www.bvstools.com
eRPG SDK - www.erpgsdk.com

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Florin Todor - YYZ
Concord
Sent: Monday, August 25, 2008 3:23 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: CGIDEV2


Raul, it seems like GetHtml doesn't return a value; could you be a
little more explicit regarding the technique you're suggesting?

Thank you


Florin Todor



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Raul A. Jager W.
Sent: Monday, August 25, 2008 3:56 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: CGIDEV2

Is GetHtml returning an error? Assign the result to a datastructure,
and check return codes.

Florin Todor - YYZ Concord wrote:


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 is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.