$Fsterr: Difference between revisions
(Automatically generated page update) |
No edit summary |
||
Line 3: | Line 3: | ||
<li>The beginning of your <var class="product">Model 204</var> session</li> | <li>The beginning of your <var class="product">Model 204</var> session</li> | ||
</li> | </li> | ||
<li>The last call to the $ERRCLR function</li> | <li>The last call to the <var>[[$ERRCLR]]</var> function</li> | ||
</li> | </li> | ||
<li>Processing a User Language OPEN statement</li> | <li>Processing a User Language OPEN statement</li> | ||
</li> | </li> | ||
</ul> | </ul> | ||
<p>For more information about counting errors or request cancellation messages, refer to the Rocket <var class="product">Model 204</var> Messages Manual. To return the most recent error message, refer to the $ERRMSG function. $FSTERR is not available for Host Language Interface applications. The $FSTERR function takes no arguments.</p> | <p>For more information about counting errors or request cancellation messages, refer to the Rocket <var class="product">Model 204</var> Messages Manual. To return the most recent error message, refer to the <var>[[$ERRMSG]]</var> function. $FSTERR is not available for Host Language Interface applications. The $FSTERR function takes no arguments.</p> | ||
<p>The $FSTERR function requires an additional 88 bytes in the fixed portion of the server.</p> | <p>The $FSTERR function requires an additional 88 bytes in the fixed portion of the server.</p> | ||
<b>Example</b> | <b>Example</b> |
Revision as of 21:19, 24 April 2014
The $FSTERR function returns a variable length string of up to 79 characters that contains the prefix and the first counting error message or request cancellation message you received since the last time that the count was reset to zero. $FSTERR returns a null value, if Model 204 has not received a counting error or request cancellation message since:
- The beginning of your Model 204 session
- The last call to the $ERRCLR function
- Processing a User Language OPEN statement
For more information about counting errors or request cancellation messages, refer to the Rocket Model 204 Messages Manual. To return the most recent error message, refer to the $ERRMSG function. $FSTERR is not available for Host Language Interface applications. The $FSTERR function takes no arguments.
The $FSTERR function requires an additional 88 bytes in the fixed portion of the server.
Example
An example of the $FSTERR function with an ON ERROR unit follows. For more information, refer to ON units.
BEGIN FSTERR.PROC: ON ERROR PRINT 'THE REQUEST IS ENDING' PRINT 'THE FIRST ERROR MESSAGE WAS:' PRINT $FSTERR END ON GET.RECS: FIND ALL RECORDS FOR WHICH AGENT = BLAKE END FIND FOR EACH RECORD IN GET.RECS . . END FOR END