$FunPurg: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (misc cleanup)
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$FunPurg}}
{{DISPLAYTITLE:$FunPurg}}
<span class="pageSubtitle">Purge running or waiting [[Fast/Unload]] request</span>
<span class="pageSubtitle">Purge running or waiting Fast/Unload request</span>


This purges a ''[[Fast/Unload]]'' request which is either running or enqueued to run.  
This purges a <var class="product">[[Fast/Unload]]</var> request which is running or enqueued to run.  


The <var>$FunPurg</var> function accepts one argument and returns a numeric result.  
The <var>$FunPurg</var> function accepts one argument and returns a numeric result.  


The only argument is a string that identifies the request number for the request to be purged. To purge a request, a user must either have initiated the request or have system manager privileges. For example, the following code creates an asynchronous unload request, and then immediately purges it:
The only argument is a string that identifies the request number for the request to be purged. To purge a request, a user must either have initiated the request or have system manager privileges. For example, the following code creates an asynchronous unload request, and then immediately purges it:
<p class="code">  
<p class="code">%RC = $FunLoad('DATA',..,'ASYNC')
%RC = $FunLoad('DATA',..,'ASYNC')
IF %RC GE 0 THEN
IF %RC GE 0 THEN
  %RC = $FunPurg(%RC)
  %RC = $FunPurg(%RC)
END IF
END IF
</p>
</p>


==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RESULT = $FunPurg(req_num)
<p class="syntax"><span class="term">%result</span> = <span class="literal">$FunPurg</span>(<span class="term">req_num</span>)
<section end="syntax" /></p>
<p class="caption">$FunPurg Function
</p>
</p>
<p class="caption">%RESULT is set to 0 if the request number req_num was found and purged, or it is set to an error code if the request could not be found or purged.</p>
<p>
<p class="code">  
<var class="term">%result</var> is set to either of these: </p>
5 - User does not have privilege to purge request
<ul>
6 - Request not found
<li>0, if the request number <var class="term">req_num</var> was found and purged </li>
</p>
 
<p class="caption">$FunPurg Error Codes
<li>An error code if the request could not be found or purged:
</p>
<p class="code">5 - User does not have privilege to purge request
<p class="code">  
6 - Request not found
</p></li>
</ul>


==Products authorizing {{PAGENAMEE}}==
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[Fast/Unload User Language Interface]]
<li>[[Fast/Unload SOUL Interface]]
</ul>
</ul>
</p>
<p class="caption">Products authorizing $FunPurg
</p>


[[Category:$Functions|$FunPurg]]
[[Category:$Functions|$FunPurg]]
[[Category:Fast/Unload User Language Interface]]
[[Category:Fast/Unload SOUL Interface]]

Latest revision as of 20:06, 16 March 2015

Purge running or waiting Fast/Unload request

This purges a Fast/Unload request which is running or enqueued to run.

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

The only argument is a string that identifies the request number for the request to be purged. To purge a request, a user must either have initiated the request or have system manager privileges. For example, the following code creates an asynchronous unload request, and then immediately purges it:

%RC = $FunLoad('DATA',..,'ASYNC') IF %RC GE 0 THEN %RC = $FunPurg(%RC) END IF

Syntax

%result = $FunPurg(req_num)

%result is set to either of these:

  • 0, if the request number req_num was found and purged
  • An error code if the request could not be found or purged:

    5 - User does not have privilege to purge request 6 - Request not found

Products authorizing $FunPurg