This function returns and modifies information about the current contents and status of a stack.
Form 1:
value = STACKINF(return,[stack],[owner])
Form 2:
curvalue = STACKINF(MAXBYTE,[stack],[owner],[kbytes])
Form 3:
acctype = STACKINF(ACCESS,[stack],[owner])
Parameters
Requested information (or error text).
Specify one of these values:
Returns the current NEWSTACK number. The number of times that the NEWSTACK
command has been issued against this stack less the number of times the DELSTACK command was issued.
Returns the current buffer number. The number of times that the MAKEBUF command has been issued against this stack less the number of times the DROPBUF command was issued.
Returns the number of stack records in the current buffer, as determined by the MAKEBUF command.
Returns the total elements on the stack. This option functions exactly like the QUEUED() function.
Returns a string consisting of all currently existing stack numbers. The numbers are blank-delimited, and are listed in ascending order.
Number of the stack to be referenced.
Default: If stack is omitted and a local stack is referenced, the current stack (as set by SWAPSTAK()). If stack is omitted and an external stack is referenced, the value set by the owning IMOD task using the PUBSTACK(DEFAULT) function.
The current size limit for stack in k-bytes. If kbytes is omitted, curvalue returns the current setting. If kbytes is specified, curvalue equals kbytes. To convert curvalue to bytes, multiply by 1024.
The current size limit for stack in k-bytes. If kbytes is omitted, curvalue returns the current setting. If kbytes is specified, curvalue equals kbytes. To convert curvalue to bytes, multiply by 1024.
Returns or sets the maximum amount of data that can be contained in the stack. Including kbytes sets the amount.
Maximum storage that the stack can occupy. This value is specified in k-bytes and is multiplied by 1024 to obtain the actual storage limit.
One of these values is returned:
Stack is private.
Stack is fully accessible for external operations.
Stack can have data queued to it externally. A subset of WRITE.
Stack can be read externally.
Stack can be read from and queued to by external functions.
Stack can be written to externally. This also implies QUEUE.
Returns the access status, as set by PUBSTACK().
ARG n MISSING OR INVALID
SPECIFIED IMOD NOT FOUND
STACK NOT SPECIFIED AND NO DEFAULT
REQUESTED STACK DOES NOT EXIST
Example
recs = stackinf('queued') /* Determine total stack records */ status = stackinf('access',,123) /* Determine public status of default stack owned by IMOD 123 */ list = stackinf('stacks') /* Obtain list of all active stacks */ list = stackinf('stacks',,123) /* Obtain list of all active stacks belonging to IMOD 123 */
Copyright © 2014 CA Technologies.
All rights reserved.
|
|