|
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx
[mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Walden H. Leverich
Sent: Thursday, January 03, 2008 11:43 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Passing Parms to CGI From CL.
The problem is that cmd.exe sees the ampersand as a command
separator and therefore sees that as two commands. To see
what I mean bring up a "dos-box" on your pc and type
"dir&cls" (without the quotes) and you'll run 2 commands,
first the dir command and then a clear screen command.
You can tell cmd.exe to ignore the ampersand by prefixing it
with a carrot. If you type "dir^&cls" you'll see that the
carrot is gone, but it can't find a program called "dir&cls"
So, in your CL, you want:
VALUE('START http://xx.xx.xxx.xx:8014/citcgidevp/GETDIV2?division='
*TCAT &DIVISION *TCAT '^&qstrat_rfq=' *TCAT &QLMRFQ#)
(Note the carrot before the &qstrat_rfq...)
-Walden
--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com
Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx
[mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Terry Anderson
Sent: Thursday, January 03, 2008 12:05 PM
To: Web Enabling the AS400 / iSeries
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 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.