$PrcLEx: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />$list of information about procedures in file<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />$list of information about procedures in file<section end="desc" /></span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $PrcLEx function is [[to be entered]].</p>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $PrcLEx function is the [[AppendProcedureList (Stringlist function)]].</p>


This function returns information about procedures in a procedure file or group into a $list.  
This function returns information about procedures in a procedure file or group into a $list.  


Also see $PRCLEXG, which gets a list of procedures in a group, and $Proc_List and $PROC_LISTG, which return the date of last update with a 4-digit year.  
Also see [[$PrcLexG]], which gets a list of procedures in a group, and [[$Proc_List]] and [[$Proc_ListG]], which return the date of last update with a 4-digit year.  


The $PrcLEx function accepts four arguments and returns a numeric result.  
The $PrcLex function accepts four arguments and returns a numeric result.  


The first argument is the file or group name for which information is to be returned. This is an optional argument and defaults to the default file/group at compile time.  
The first argument is the file or group name for which information is to be returned. This is an optional argument and defaults to the default file/group at compile time.  
Line 17: Line 17:


The fourth argument is a string indicating the last modification date for the procedures to be selected. If specified, this parameter must be 6 bytes long and begin with either a '=', '<' or '>' character to indicate whether the date should be equal to, less than or greater than the following Julian date which is the last 5 characters. '>89200', for example, selects procedures last modified after day 200 of 1989. This is an optional parameter and defaults to all modification dates. Note that this 2-digit year date is interpreted with a CENTSPAN of 1975, so that values between 00000 and 74365 are considered to be in the years 2000-2074.
The fourth argument is a string indicating the last modification date for the procedures to be selected. If specified, this parameter must be 6 bytes long and begin with either a '=', '<' or '>' character to indicate whether the date should be equal to, less than or greater than the following Julian date which is the last 5 characters. '>89200', for example, selects procedures last modified after day 200 of 1989. This is an optional parameter and defaults to all modification dates. Note that this 2-digit year date is interpreted with a CENTSPAN of 1975, so that values between 00000 and 74365 are considered to be in the years 2000-2074.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RESULT = $PrcLEx(file, pname, account, date)
<p class="syntax"><section begin="syntax" /> %RESULT = $PrcLEx(file, pname, account, date)
Line 23: Line 24:
</p>
</p>
<p class="caption">%RESULT is a either a $list identifier or a negative error code.</p>
<p class="caption">%RESULT is a either a $list identifier or a negative error code.</p>
All invocations of a particular call to $PrcLEx will always return the same $list identifier. Each time that call is executed, if the function is successful then any previous $list created by that call is deleted, and a new list is created.  
All invocations of a particular call to $PrcLEx will always return the same $list identifier. Each time that call is executed, if the function is successful then any previous $list created by that call is deleted, and a new list is created.  


The output $list produced by $PrcLEx has the following format :
===Output format===
The output $list produced by $PrcLEx has the following format:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>Col 1-10</th>
<tr><th>Col 1-10</th>
Line 37: Line 40:
<tr><th>Col 39-</th>
<tr><th>Col 39-</th>
<td>Procedure name
<td>Procedure name
</td></tr></table>
</td></tr>
</table>
 
==Error codes==
<p class="code">  
<p class="code">  
-1 - File/group not found
  -1 - File/group not found
-2 - No procedures match search criteria
  -2 - No procedures match search criteria
-3 - No room to create $list items
  -3 - No room to create $list items
(if LISTFC $SirParm parameter not set)
        (if LISTFC $SirParm parameter not set)
-4 - Invalid selection criterion
  -4 - Invalid selection criterion
</p>
</p>
<p class="caption">$PrcLEx Error Codes
<p class="caption">$PrcLEx Error Codes
</p>
</p>


The following program displays information for all procedures in file 'HOMER' beginning with the letter 'S' last updated by a user whose account id begins with the letter 'A'.
The following program displays information for all procedures in file 'HOMER' beginning with the letter 'S' last updated by a user whose account id begins with the letter 'A'.
Line 60: Line 65:
  END
  END
</p>
</p>
<p class="code">


<ul>
<ul class="smallAndTightList">
<li>[[Sirius Functions]]
<li>[[SirPro]]
<li>[[Janus Web Server]]
</ul>


<li>&SFUNC
<li>&SIRPRO
<li>&JWEBS
</ul>
</p>
<p class="caption">Products authorizing $PrcLEx
<p class="caption">Products authorizing $PrcLEx
</p>
</p>


[[Category:$Functions|$PrcLEx]]
[[Category:$Functions|$PrcLEx]]

Revision as of 21:44, 1 February 2011

<section begin="desc" />$list of information about procedures in file<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $PrcLEx function is the AppendProcedureList (Stringlist function).

This function returns information about procedures in a procedure file or group into a $list.

Also see $PrcLexG, which gets a list of procedures in a group, and $Proc_List and $Proc_ListG, which return the date of last update with a 4-digit year.

The $PrcLex function accepts four arguments and returns a numeric result.

The first argument is the file or group name for which information is to be returned. This is an optional argument and defaults to the default file/group at compile time.

The second argument is the procedure name that is to be selected. The procedure name may contain '*' characters to indicate wildcard matches. This is an optional parameter and defaults to all procedures.

The third argument is the account id of the last modifying user for the procedures to be selected. The account id may contain '*' characters to indicate wildcard matches. This is an optional parameter and defaults to all account ids.

The fourth argument is a string indicating the last modification date for the procedures to be selected. If specified, this parameter must be 6 bytes long and begin with either a '=', '<' or '>' character to indicate whether the date should be equal to, less than or greater than the following Julian date which is the last 5 characters. '>89200', for example, selects procedures last modified after day 200 of 1989. This is an optional parameter and defaults to all modification dates. Note that this 2-digit year date is interpreted with a CENTSPAN of 1975, so that values between 00000 and 74365 are considered to be in the years 2000-2074.

Syntax

<section begin="syntax" /> %RESULT = $PrcLEx(file, pname, account, date) <section end="syntax" />

$PrcLEx Function

%RESULT is a either a $list identifier or a negative error code.

All invocations of a particular call to $PrcLEx will always return the same $list identifier. Each time that call is executed, if the function is successful then any previous $list created by that call is deleted, and a new list is created.

Output format

The output $list produced by $PrcLEx has the following format:

Col 1-10 Account id of last updater.
Col 12-19 Size of procedure in bytes.
Col 21-28 Date of last update (YY/MM/DD).
Col 30-37 Time of last update (BH:MI:SS).
Col 39- Procedure name

Error codes

-1 - File/group not found -2 - No procedures match search criteria -3 - No room to create $list items (if LISTFC $SirParm parameter not set) -4 - Invalid selection criterion

$PrcLEx Error Codes

The following program displays information for all procedures in file 'HOMER' beginning with the letter 'S' last updated by a user whose account id begins with the letter 'A'.

B %LIST = $PrcLEx('HOMER', 'S*', 'A*') FOR %I FROM 1 TO $ListCnt(%LIST) PRINT $ListInf(%LIST, %I) END FOR END

Products authorizing $PrcLEx