$UseASA: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
mNo edit summary
Line 4: Line 4:
<p class="warn"><b>Note: </b>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>Most Sirius $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"><span class="term">%result</span> = $UseASA
<p class="syntax"><span class="term">%result</span> = $UseASA
</p>
</p>
<p>
</p>
<p><var class="term">%result</var> 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>


Line 38: Line 36:
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
</ul>
</ul>
<p>
</p>


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

Revision as of 00:40, 25 July 2013

Prevent carriage control in USE output

Note: Most Sirius $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