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

Discussions relating to writing software in ILE RPG (RPG IV). This includes both fixed and free format RPG.
Post Reply
sandrocarosso
Posts: 12
Joined: Mon Dec 05, 2022 1:58 pm

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

Post 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.
vhamberg
Posts: 18
Joined: Thu Jul 29, 2021 1:33 am

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

Post 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.
jonboy49
Posts: 249
Joined: Wed Jul 28, 2021 8:18 pm

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

Post 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.
sandrocarosso
Posts: 12
Joined: Mon Dec 05, 2022 1:58 pm

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

Post 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
jonboy49
Posts: 249
Joined: Wed Jul 28, 2021 8:18 pm

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

Post 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.
sandrocarosso
Posts: 12
Joined: Mon Dec 05, 2022 1:58 pm

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

Post 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
Post Reply