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



As other colleague just mentioned you can create a bat file it could be in
IFS folder and call the bat file which contain your long command.


On Fri, Nov 22, 2019 at 2:36 PM Peter Dow <petercdow@xxxxxxxxx> wrote:

Hi Booth,

I opened a DOS command window on my Win10 PC and entered

C:\Users\Peter>start

https://samples.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric&appid=b6907d289e10d714a6e88b30761fae22
'units' is not recognized as an internal or external command,
operable program or batch file.
'appid' is not recognized as an internal or external command,
operable program or batch file.

However, it opened up my web browser (Google Chrome) with the address
bar showing
"
https://samples.openweathermap.org/data/2.5/group?id=524901,703448,2643743";

and the display area showing

{"cod":401, "message": "Invalid API key. Please see
http://openweathermap.org/faq#error401 for more info."}


It looks to me like you need to somehow escape the ampersands (&). I used
a caret (^) and it worked:

C:\Users\Peter>start
https://samples.openweathermap.org/data/2.5/group?id=524901,703448,2643743
^&units=metric^&appid=b6907d289e10d714a6e88b30761fae22

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx>

/
On 11/22/2019 11:18 AM, Booth Martin wrote:
* Prototypes.
dcl-pr Qcmd extpgm('QCMDEXC');
*n varchar(1024) const;
*n packed(15: 5) const;
end-pr;
dcl-s wCmd varchar(1024);

...

/free

wCmd = 'STRPCCMD PCCMD(start ' + URL + ') PAUSE(*NO)';
Qcmd(wCmd: %len(wCmd));

URL is

....5...10...15...20...25...30...35...40...45...50...55...60
'https://samples.openweathermap.org/data/2.5/group?id=524901,'
'703448,2643743&units=metric&appid=b6907d289e10d714a6e88b3076'
'1fae22 '

error is:

String ' ¤STRPCCMD' contains a character that is not valid.
Characters in qualifier beginning 'GROUP?ID=5' not valid.
A matching parenthesis not found.



On 11/22/2019 5:48 AM, Bruce Vining wrote:
Interesting. Any chance you could post your CL/RPG/whatever program
calling QCMDEXC?

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

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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.