Page 1 of 1

Opening a 5250 web page with a link longer than 123 characters

Posted: Fri Jun 27, 2025 2:40 pm
by sandrocarosso
Good evening everyone, I need to open a 5250 web page which has a link with more than 123 characters, which is the limit imposed by the “STRPCCMD” command.
Do you know of any method to get around this limit?
Thanks in advance.

Re: Opening a 5250 web page with a link longer than 123 characters

Posted: Fri Jun 27, 2025 3:15 pm
by vhamberg
You can have HTML on a 5250 screen and it will be clickable, I don't think it uses STRPCCMD, as I've not tried it. In the ACS 5250 Preferences->Hot spots there is a setting for URLs.

Maybe worth a try.

Re: Opening a 5250 web page with a link longer than 123 characters

Posted: Fri Jun 27, 2025 3:54 pm
by jonboy49
That limit disappeared back in release 7.2. Are you running a really old release? The current limit is 1,023 characters. Of course you will also need to be running a 5250 emulator package that is aware of this update.

Re: Opening a 5250 web page with a link longer than 123 characters

Posted: Sun Jun 29, 2025 4:51 pm
by sandrocarosso
Thank you all for your replies.
The operating system is 7.5, most pc's (maybe all) are still using iseries access 7.1.
With this software, the ‘strpccmd’ command is limited (I think to about 123 characters), whereas using the new ACS this limit is exceeded. Unfortunately, it is not possible to update the various clients in the short term (they are many and mostly located in different places).
The solution one would like to adopt is to issue a window displaying the relevant link and, by enabling the “hotspots” function, to open the browser.
If you have any other ideas, they are welcome.

Thank you all

Re: Opening a 5250 web page with a link longer than 123 characters

Posted: Sun Jun 29, 2025 5:34 pm
by jonboy49
It always saddens me when programmers are forced to find "solutions" for non-existent problems. The answer is so easy - update to a supported release.

But if the powers that be deem this impossible the only thiong I can think of is to load a batch file on each PC and invoke that with parms for the variable portion.

Re: Opening a 5250 web page with a link longer than 123 characters

Posted: Mon Jun 30, 2025 7:58 am
by sandrocarosso
@jonboy49 I absolutely agree with you.
Probably, the decision will be to upgrade the various clients (which is also the most logical one).
In the meantime, it is necessary to find a “temporary” solution.
Thanks for the suggestion

Have a great day