SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-31
DELETE
DELETE 
The DELETE statement deletes all lines of text contained in the cache memory 
associated with the specified task. 
cache-taskid 
identifies the cache memory that is to have its contents deleted. The contents are 
deleted, not the actual taskid.
!
indicates that you want to perform the delete. Because the DELETE statement 
completely destroys all data stored for a given task or set of tasks, the exclamation 
point (!) is required. 
Example 
This example shows how you can use the DELETE statement to empty a cache so that 
it can be used to programmatically generate a dynamic menu: 
DELETE cache-taskid ! 
Note. The DELETE statement does not change a task's operational status. If the task was 
running, it will still be running. 
 ?MENU FileInfo
 ?PROC ShowFileInfo ( #subvol )
 {----------------------------}
 { This proc displays a menu containing fileinfo 
 { for the subvol contained in string variable
 { #subvol. The TASK copy option is used to 
 { generate the contents of the FileInfo menu.
 {--------------------------------------------}
 PARM #subvol;  { subvol to do fileinfo on 
 TASK fup;
 WRITE fup,"info " & #subvol & ".*";
 FOR 2 DO READ fup;{ skip over heading
 DELETE FileInfo !;{ empty FileInfo cache
 TASK fup COPY FileInfo;
 LINE 4;
 WINDOW FileInfo { Display FileInfo Menu 
  MENU 
  "CALL ShowInfoDetail(#TAKE #MENUTEXT)" 
  CACHE SIZE 13,24;
 ?PROC ShowInfoDetail ( #file )
 {----------------------------}
 { Do an INFO file,DETAIL on the 
 { file pointed to in the FileInfo menu.
 {--------------------------------------}
 PARM #file;
 TASK fup;
 BESIDE;
 WINDOW fup,"INFO " & #file & ",DETAIL";










