I found the answer on another board. It appears that the & is treated as
a special character and needs to be "escaped" using the carat (^). Once
I changed '&qstrat_rfq=' to '^&qstrat_rfq=', my parms started to show
up. I am still going to look into rundll32 option, though.

Thanks to all who replied.


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



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx
[mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Bob P. Roche
Sent: Thursday, January 03, 2008 11:28 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Passing Parms to CGI From CL.


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


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



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



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.