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



This is my simple HTML form to send the request:

<html><head>
<title>Registration Counts</title></head>
<body TEXT="navy" BGCOLOR="silver">
<h1>Registration Counts</h1>
<form action="/tcgi-bin/CLHTML.pgm" method=GET>
<p>Enter Year and Term:
<p>Year:<input type=text name="year" size=4 value="2001">
<p>Term:<input type=text name="term" size=2 value="43">
<br><br><br>
<input type="submit" value="ENTER">
<input type="reset"  value="Start Over">
</form>
</html>

This is the main part of the CL program that I want to send the parameters to:


            PGM        PARM(&QUERY)
            DCL        VAR(&QUERY) TYPE(*CHAR) LEN(17)
            DCL        VAR(&YEAR)  TYPE(*CHAR) LEN(4)
            DCL        VAR(&TERM)  TYPE(*CHAR) LEN(2)
            CHGVAR     VAR(&YEAR)  VALUE('/%year%/')
            CHGVAR     VAR(&TERM)  VALUE('/%term%/')
            CALL       PGM(REGCOUNT) PARM(&YEAR &TERM)


> Message: 3
> Subject: Re: [WEB400] HTML & CL
> To: web400@midrange.com
> From: dmosley@dancik.com
> Date: Mon, 13 May 2002 16:22:07 -0400
> Reply-To: web400@midrange.com
>
> Just how are you trying to access CLHTML ?
>
> David L. Mosley, Jr.
> Systems Analyst
> 2000 CentreGreen Way
> Suite 250
> Cary, NC 27513
>
> Hi!
> How can I get my CL accept input parameters from an HTML input screen. When
> I run the HTML form I get:
>
> Error 500
>
> Bad script request -- script '/QSYS.LIB/DIANE.LIB/CLHTML.PGM' not found or
> not executable
>
> Help! Please I am so close.
> Diane



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.