$UseASA: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
 
(26 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<span class="pageSubtitle">Prevent carriage control in USE output</span>
<span class="pageSubtitle">Prevent carriage control in USE output</span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $UseASA function.</p>
<p class="warn"><b>Note: </b>Many $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $UseASA function.</p>


This function fools <var class="product">Model 204</var> into not placing carriage control characters in USE dataset output.  
This function fools <var class="product">Model&nbsp;204</var> into not placing carriage control characters in USE dataset output.  


The $UseASA function accepts no arguments and returns 0 if successful or an error code.
The <var>$UseASA</var> function accepts no arguments and returns 0 (if successful) or an error code.


==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" />%result = $UseASA
<p class="syntax"><span class="term">%result</span> = $UseASA
<section end="syntax" /></p>
<p class="caption">$UseASA Function
</p>
</p>
<p class="caption">%result is set to the return code.</p>


<p class="code">  
<p><var class="term">%result</var> is set to a [[#Return codes|return code]].</p>
0 - Successful
 
4 - Dataset does not use control characters
===Return codes===
8 - No USE dataset active
<p class="code">0 - Successful
</p>
4 - Dataset does not use control characters
<p class="caption">$UseASA return codes
8 - No USE dataset active
</p>
</p>


For example, this code fragment prevents M204 from inserting carriage control characters:
==Example==
<p class="code"> %X = $UseASA
This code fragment prevents Model 204 from inserting carriage-control characters:
<p class="code">%x = $UseASA
</p>
</p>


==Products authorizing {{PAGENAMEE}}==
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[Sirius functions]]</li>
<li>[[List of $functions|Sirius functions]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Janus Open Server]]</li>
<li>[[Media:JosrvrNew.pdf|Janus Open Server]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Sockets]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Janus Web Server]]</li>
<li>[[Japanese functions]]</li>
<li>Japanese functions</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Media:SirfieldNew.pdf|Sir2000 Field Migration Facility]]</li>
</ul>
</ul>
<p class="caption">Products authorizing $UseASA
</p>


[[Category:$Functions|$UseASA]]
[[Category:$Functions|$UseASA]]

Latest revision as of 23:27, 20 September 2018

Prevent carriage control in USE output

Note: Many $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $UseASA function.

This function fools Model 204 into not placing carriage control characters in USE dataset output.

The $UseASA function accepts no arguments and returns 0 (if successful) or an error code.

Syntax

%result = $UseASA

%result is set to a return code.

Return codes

0 - Successful 4 - Dataset does not use control characters 8 - No USE dataset active

Example

This code fragment prevents Model 204 from inserting carriage-control characters:

%x = $UseASA

Products authorizing $UseASA