$Web DBCS: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />Modify DBCS output translation<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Modify DBCS output translation<section end="desc" /></span>


<var>$Web_DBCS</var> lets you enable. disable, or reset <var class="product">Model 204</var> double byte character set support for this <var class="product">[[Janus Web Server]]</var> thread.


<var>$Web_DBCS</var> takes one argument and returns a status code. It is a callable $function (see [[Calling_Sirius_Mods_$functions|Calling Sirius Mods $functions]]).


<var>$Web_DBCS</var> lets you enable. disable, or reset <var class="product">Model 204</var> double byte character set support for this <var class="product">[[Janus Web Server]]</var> thread.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RC = <var>$Web_DBCS</var> ( dbcs-setting )
<p class="syntax"><section begin="syntax" />%rc = <var>$Web_DBCS</var> ( dbcs-setting )
<section end="syntax" /></p>
<section end="syntax" /></p>


 
===Syntax terms===
<var>$Web_DBCS</var> takes one argument and returns a status code. It is a callable $function (see [[Calling_Sirius_Mods_$functions|Calling Sirius Mods $functions]]).  
<table class="syntaxTable">
 
<tr><th>%rc</th>
The <var>$Web_DBCS</var> argument is the new setting of automatic DBCS character translation, and it must be one of the following:
<td>A numeric variable to contain the method's return value. Possible values are those in [[#Return codes|"Return codes"]], below. </td></tr>
<tr><th>dbcs-setting</th>
<td>The new setting of automatic DBCS character translation, and it must be one of the following:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>OFF</th>
<tr><th><var>OFF</var></th>
<td>Disables DBCS output translation.</td></tr>
<td>Disables DBCS output translation.</td></tr>
<tr><th>ON</th>
<tr><th><var>ON</var></th>
<td>Enables DBCS output translation.</td></tr>
<td>Enables DBCS output translation.</td></tr>
<tr><th>RESET</th>
<tr><th><var>RESET</var></th>
<td>Resets DBCS translation to whatever is set in the port's definition.
<td>Resets DBCS translation to whatever is set in the port's definition.
</td></tr></table>
</td></tr></table>
</td></tr></table>



Revision as of 20:47, 16 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.

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

Syntax

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

Syntax terms

%rc A numeric variable to contain the method's return value. Possible values are those in "Return codes", below.
dbcs-setting 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 "DBCS Feature".