SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-101
STATUS
Example
This example shows the SHUTDOWN statement.
STATUS
The STATUS statement displays the status of processes that are communicating with
the SeeView program.
The STATUS statement includes information about the total number of system and
user messages received by SeeView. This statement also displays the number of
IOPOOL pages used and allocated and the total number of IOPOOL gets and puts
since SeeView was started.
Function key F13 displays TASK status in the largest free window on the Help page.
taskid | *
displays status information for one specific taskid. Use the asterisk * to display
menu data information in addition to task data regardless of the setting of the
ALTER MENUSTATUS option. (See the ALTER on page 9-9.)
?MENU MyMenu
?PROC ShutDown
{-------------}
{ A proc to shutdown SeeView. Note, if any windows are in editmode,
{ then a menu is popped up displaying the open windows else shutdown.
{--------------------------------------------------------------------}
VAR taskno := -1 {Will iterate thru valid taskids
,editpg
;
DELETE mymenu!; {To contain list of editmode windows.
FOR #TASKCOUNT DO BEGIN {Build list of editmode windows, if any.
WITH taskno:=taskno+1;
editpg := #TASKEDITMODE; {Built-in returns pg <> 0, if editmode.
IF editpg THEN {editpg is page number of editmode window.
PUSH "Page " & editpg & ", " & #TASKSYMBOL & "<==PAGE " &editpg
ONTO mymenu;
END;
WITH mymenu; { With mymenu taskid.
IF #TASKCACHELINES THEN BEGIN { One or more editmode windows found.
LINE 4,#MENUWIDTH; { Show a menu that vectors to them.
WINDOW mymenu MENU FOR #TASKCACHELINES SIZE 22 HEAD "Editmode Windows";
MSG (R) "Cannot shutdown, windows are in Editmode";
RETURN;
END;
SHUTDOWN;
STATUS [ taskid | * ]