SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-82
PRINT
Example
This example shows the PUSH and POP statements.
PRINT
The PRINT statement displays the value of an integer variable, string variable, or
string/numeric expression.
*
displays all user variables and their values. This option displays recent local
variable values for the last procedure call sequence.
string-exp | expression
specifies the integer variable, string variable, or string/numeric expression to be
printed.
Example
This example shows how to use the PRINT statement.
?SECTION qpush
{-------------}
{ Build a cache "q" of pup listdev info, and present window on data
{----------------------------------------------------------------}
VAR #s,eof,row,col;
TASK pup :=pup;
TASK q :=$null;
DELETE q!;
WRITE pup,"listdev disc"; {do a listdev
PUSH "Current Disc Process 'active' Paths" ONTO q; {push heading
PUSH "" ONTO q; {skip a line
DO BEGIN
READ pup,#s,eof;
IF #s[20]="*" THEN PUSH #time & #s[1:50] ONTO q; {push *'ed lines
END UNTIL eof;
PAGE 1; CLEAR; {display result
WINDOW q CACHE; {in window.
?SECTION qpop
{-----------}
{ Display data from a taskid's cache on terminal page 2.
{------------------------------------------------------}
LET row:=-1; LET col:=0;
PAGE 2; CLEAR;
DO BEGIN {display Q data
POP #s FROM q; {"outside" of
PLOT 0,(row:=row+1); {a window
"" & #s;
END UNTIL (#s="") OR (row>22);
PRINT * | string-exp | expression [, … ]
PRINT X,Y,Z
PRINT #S, #TAKE #S