Highlighted
Absent Member.
Absent Member.
349 views

[archive] Passing http address issue...

[Migrated content. Thread originally posted on 10 March 2010]

I have the following statements (replaced a few characters in command with * for security) in a program:

INITIALIZE CMD-FLAGS.
COMPUTE CMD-FLAGS = CSYS-SHELL +
CSYS-HIDDEN +
CSYS-DESKTOP +
CSYS-ASYNC.
INITIALIZE DATA-LINK.

STRING "START "
"http://**********.****.net/ReportServer/"
"Pages/******Viewer.aspx?/*****%20Server%20Reports/"
"DataDump&rs:Command=Render&PCRID="
DELIMITED BY SIZE
WS-BI-PCR-ID DELIMITED BY " "
INTO DATA-LINK.
CALL "C$SYSTEM" USING DATA-LINK
CMD-FLAGS.

When we look at the data-link variable in debug it has the full correct value in it. The issue comes in when the CALL statement happens. In Internet Explorer when the HTTP address stops at the "&" character. So all we get is everything up to the "DataDump" part of the address and nothing after. This of course is an invalid address so the page does not come up. I have tried to use HEX values for the "&" and that did not help. I have also put "&" in other places in the address and where ever the "&" is the HTTP address ends in IE.

Has anyone ever had issues passing HTTP address like this before?
0 Likes
5 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Passing http address issue...

Use '&' instead of '&' in the URL. I hope this will fix your issue. You may need to convert some other special characters also.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Passing http address issue...

Thanks for the idea but the same thing happens when using the method you suggested also.

Still stuck!!!
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Passing http address issue...

Try putting the http link itself in quotes, so that your START command reads something like START "http://thislink.is.quoted.com/I/hope/this/helps".
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Passing http address issue...

Blacky thanks for the option...but when I do this I get a windows command box that appears and the command does not run and start IE.

I am getting close to the end of my rope, but you guys keep feeding me stuff and I will try it.

I want this solved but I have nothing left but to rely on the experts in this forum.

Thanks again everyone.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Passing http address issue...

GOT IT!!!!

After all you guys help and lots of trial and error in a windows command box the followig works....

STRING
"START "
"http://**********.****.net/ReportServer/"
"Pages/******Viewer.aspx?/*****%20Server%20Reports/"
"DataDump+"
'"' {this is a double quote inside single quotes}
"&rs:Command=Render&PCRID=" DELIMITED BY SIZE
WS-BI-PCR-ID DELIMITED BY " "
'"' {this is a double quote inside single quotes}
DELIMITED BY SIZE
INTO DATA-LINK.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.