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



Look thru the archives. Scott Klement has answered this in the past. I
know he has a good article about this (not sure where the URL is at the
moment).

In my code I have CHGVAR VAR(&CMD) VALUE('rundll32
url,FileProtocolHandler' *BCAT &URL *TCAT '?CODE=' *TCAT &code)

I know I'm only sending one parameter and not 2, but Using rundll32 was a
way to handle more than one parameter. I also remember the case had to be
left as listed for "rundll32 url,FileProtocolHandler".




"Terry Anderson" <terrya@xxxxxxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
01/03/2008 11:04 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>


To
"Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx>
cc

Subject
[WEB400] Passing Parms to CGI From CL.






Greetings List,
I hope all of you had a merry Christmas and have a happy and prosperous
new year.

Here is what I am trying to do. I have a CGIDEV2 program that adds
footnotes to an RFQ. Since several divisions will be using this program, I
need to send the division name as well as the RFQ number to the CGI
program.

I have the following commands in my CL program:

CHGVAR VAR(&PCCOMMAND) VALUE('START
http://xx.xx.xxx.xx:8014/citcgidevp/GETDIV2?division=' *TCAT &DIVISION
*TCAT '&qstrat_rfq=' *TCAT &QLMRFQ#)

STRPCCMD PCCMD(&PCCOMMAND) PAUSE(*NO)

I can get this to work if I key it into the command line of the browser
but not when I call it from the CL. Can some one tell me what I am doing
wrong? I saw an older post somewhere that said that the START command was
limited to 123 characters. Is that correct and if so, how do you get
around this limitation?


Thanks,


Terry Anderson
Programming Manager
Citation Corporation
Switchboard 1.251.867.5481 ext 212
Direct Line 1.251.809.2312
Fax 251.867.0525
Cell 1.251.363.4975



As an Amazon Associate we earn from qualifying purchases.

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