SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-39
EXECUTE
EXECUTE 
The EXECUTE statement permits dynamic creation and execution of SeeView 
statements.  
string-exp 
specifies one or more SeeView statements to be executed.
CACHE taskid
designates the taskid of the cache that is to be invoked or executed.
Considerations
The EXECUTE statement permits dynamic creation and execution of SeeView 
statements. This enables you to use variable information contained in string and 
integer variables to build SeeView statements. 
Examples
1. This example of the EXECUTE statement finds a specified task and displays a 
window on that task: 
2.  A second use of EXECUTE is to substitute file names or integer values contained 
in string or integer variables in portions of SeeView statements that do not 
otherwise permit variable information. 
For example, the statement LOAD myfile,mycache loads file myfile into cache 
mycache. In the LOAD statement, you cannot use a string variable such as #file in 
place of the file name. You can use the EXECUTE statement to solve this problem 
by allowing the formation of a statement that can be executed:
EXECUTE "LOAD " & #file & ",mycache". 
3. A third use of the EXECUTE statement is to provide a way to make statement 
options parametric. 
EXECUTE string-exp | CACHE taskid 
TASK pup;
 CALL ShowTaskPage("pup");
 ?PROC ShowTaskPage { #taskname }
 {------------------------------}
 { This proc determines whether a task named #taskname exists.
 { If so, the page with a window on that task exists is displayed.
 {---------------------------------------------------------------}
 PARM #taskname;
 IF NOT #TASK #taskname THEN return;  { Check for task's existence
 EXE "WITH " &#taskname;     { exe "with pup" for #taskpageno
 IF #taskpageno THEN PAGE #TASKPAGENO { pup has a window on it =>goto page
     ELSE BELL;    { pup has no window on it=>bell










