$FunWait: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
{{DISPLAYTITLE:$FunWait}}
{{DISPLAYTITLE:$FunWait}}
<span class="pageSubtitle"><section begin="desc" />Wait until asynchronous &FUNL. request completes<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Wait until asynchronous [[Fast/Unload]] request completes<section end="desc" /></span>
 
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $FunWait function is [[to be entered]].</p>
 
 


This requests that the user wait until an asynchronous ''[[Fast/Unload]]'' request is completed.  
This requests that the user wait until an asynchronous ''[[Fast/Unload]]'' request is completed.  
Line 35: Line 31:
<p class="caption">$FunWait Function
<p class="caption">$FunWait Function
</p>
</p>
<p class="caption">%RESULT is set to the return code from &FUNL., or it is set to -1 if the request cannot be found.</p>
<p class="caption">%RESULT is set to the return code from [[Fast/Unload]], or it is set to -1 if the request cannot be found.</p>
<p class="code">  
<p class="code">  
  -1 - request not found
  -1 - request not found
Line 43: Line 39:
<p class="code">  
<p class="code">  


<ul>
<ul class="smallAndTightList">
 
<li>[[Fast/Unload User Language Interface]]
<li>&FUNULI
 
</ul>
</ul>
</p>
</p>
<p class="caption">Products authorizing $FunWait
<p class="caption">Products authorizing $FunWait
</p>
</p>


[[Category:$Functions|$FunWait]]
[[Category:$Functions|$FunWait]]
[[Category:Fast/Unload $functions|$FunWait]]

Revision as of 17:07, 1 February 2011

<section begin="desc" />Wait until asynchronous Fast/Unload request completes<section end="desc" />

This requests that the user wait until an asynchronous Fast/Unload request is completed.

The $FunWait function accepts one argument and returns a numeric result.

The only argument is a string that identifies the request number to be waited on. To wait on a request, the user must have initiated the request.

In the following example, two ASYNCH Fast/Unload requests are placed and then their completion is waited for. If FUNTSKN is 2 or greater, these requests can run in parallel.

%RNUM1 = $FunLoad('DATA1',..,'ASYNC') IF %RNUM1 < 0 THEN JUMP TO FUNERR END IF %RNUM2 = $FunLoad('DATA2',..,'ASYNC') IF %RNUM2 < 0 THEN %RC = $FunPurg(%RNUM1) JUMP TO FUNERR END IF %RC1 = $FunWait(%RNUM1) %RC2 = $FunWait(%RNUM2) END IF

Syntax

<section begin="syntax" /> %RESULT = $FunWait(req_num) <section end="syntax" />

$FunWait Function

%RESULT is set to the return code from Fast/Unload, or it is set to -1 if the request cannot be found.

-1 - request not found

$FunWait Error Codes

Products authorizing $FunWait