Kbase 16640: Webspeed 1.0 - Using -E (European Number Format).
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
SUMMARY:
When you run a state aware .w file and are using the -E (European Number format) option in the agentparams, you may receive the
following error:
Invalid element in set-attribute call: 00 in filename.w
Set-Cookie: WSEU=pc-217125:2000:64:5; path=/filename.wsc
Content type : text/html
EXPLANATION:
This is caused by attributes that are not stored in a comma delimited list. For example, on U.S. language systems, you would set the Web-Timeout to 5.00 minutes with the following statement:
RUN set-attribute-list IN p_wo-hdl
("Web-Timeout = 5.00").
With the European number format, this attribute should be set to 5,00:
RUN set-attribute-list IN p_wo-hdl
("Web-Timeout = 5,00").
Note that, based on the comma, the 00 is assumed to be a second attribute.
SOLUTION:
The workaround is to change your web-util.p as follows. Note that this workaround limits you to non-fractional timeout periods.
In the set-web-state function, the timeout period is converted to a
string using:
IF p_timeout > 0 THEN DO:
/* Set the attributes of the Web object itself. */
RUN set-attribute-list IN p_wo-hdl
('Web-State = state-aware,
Web-Timeout = ':U + STRING(p_timeout,">>>>>9.99":U)) NO-ERROR.
This could be changed to a non-decimal format:
IF p_timeout > 0 THEN DO:
/* Set the attributes of the Web object itself. */
RUN set-attribute-list IN p_wo-hdl
('Web-State = state-aware,
Web-Timeout = ':U + STRING(p_timeout,">>>>>9":U)) NO-ERROR.