SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-138
WRITE
This statement returns data from that cache index:
Considerations
The FROM option in conjunction with the PARAM SERVERMODE option allows
workstation clients to make ServerClassSend requests to a SeeView gateway server
and in return receive large, efficiently blocked responses from virtually any HP
conversational process that the SeeView server has been scripted to allow. This
capability has a variety of applications and advantages in the area of GUI
implementations on workstations. The third example depicts this.
Examples
These examples show the WRITE statement.
•
First example:
•
Second example:
WRITE gui, "TACL status (complete buffer)"
FROM tacl CACHE 98
MORE "TACL status (continue ######)";
?PROC ListEmployees(FromEmpNo,ForCount)
{-------------------------------------}
PARM FromEmpNo { Employee number to start from
, ForCount { Number of employees to list
;
TASK enform VOLUME $system.public;
WRITE enform, "Open emp; set @heading off;";
WRITE enform, "Set @target-records " & ForCount & ";";
WRITE enform, "List emp.emp-num where emp.emp-num > " & FromEmpNo & ";";
WINDOW enform cache lastline;
?MENU scratch
?SECT main
{---------}
WRITE scratch CACHE i,#s; { Store #s prior to cache element "i"
WRITE scratch CACHE 0,#s; { Store #s at the beginning of cache
WRITE scratch CACHE -1 AFTER, #s; { Store #s at the end of cache
WRITE scratch CACHE i UPDATE,#s; { Update cache element "i" with #s
WRITE scratch CACHE i DELETE,""; { Delete cache element "i"