$Web DBCS: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
Line 22: Line 22:
</td></tr></table>
</td></tr></table>


===Return codes===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>Code</th>
<tr><th>Code</th>
<td>Meaning</td></tr>
<th>Meaning</th></tr>
<tr><th>0</th>
<tr><th>0</th>
<td>Success.</td></tr>
<td>Success.</td></tr>
Line 33: Line 34:
<tr><th>-3</th>
<tr><th>-3</th>
<td>Invalid or missing argument.</td></tr>
<td>Invalid or missing argument.</td></tr>
</table>
</table>
<p class="caption">$WEB_DBCS return codes</p>


Use $Web_DBCS to selectively invoke DBCS translation, regardless of the port's DBCS setting. Note, however, that <var class="product">[[Janus Web Server]]</var> DBCS support is only available if the ''Model 204'' DBCSENV CCAIN parameter is set to 1. For more information about <var class="product">[[Janus Web Server]]</var> DBCS support, see the ''Janus Web Server Reference Manual'' .do end . .do end
==Usage notes==
<ul>
<li>Use <var>$Web_DBCS</var> to selectively invoke DBCS translation, regardless of the port's DBCS setting. Note, however, that <var class="product">[[Janus Web Server]]</var> DBCS support is only available if the ''Model 204'' DBCSENV CCAIN parameter is set to 1. For more information about <var class="product">[[Janus Web Server]]</var> DBCS support, see the ''Janus Web Server Reference Manual'' .do end . .do end


[[Category:Janus Web Server $functions|$Web_DBCS]]
[[Category:Janus Web Server $functions|$Web_DBCS]]

Revision as of 22:39, 15 June 2012

<section begin="desc" />Modify DBCS output translation<section end="desc" />


$Web_DBCS lets you enable. disable, or reset Model 204 double byte character set support for this Janus Web Server thread.

Syntax

<section begin="syntax" /> %RC = $Web_DBCS ( dbcs-setting ) <section end="syntax" />


$Web_DBCS takes one argument and returns a status code. It is a callable $function (see Calling Sirius Mods $functions).

The $Web_DBCS argument is the new setting of automatic DBCS character translation, and it must be one of the following:

OFF Disables DBCS output translation.
ON Enables DBCS output translation.
RESET Resets DBCS translation to whatever is set in the port's definition.

Return codes

Code Meaning
0 Success.
-1 Not a Web Server thread.
-2 DBCSENV parameter is zero (DBCS support not enabled).
-3 Invalid or missing argument.

Usage notes

  • Use $Web_DBCS to selectively invoke DBCS translation, regardless of the port's DBCS setting. Note, however, that Janus Web Server DBCS support is only available if the Model 204 DBCSENV CCAIN parameter is set to 1. For more information about Janus Web Server DBCS support, see the Janus Web Server Reference Manual .do end . .do end