SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-162
String Intrinsics
#MYPROCESSNAME
returns a string containing the process name of the current SeeView process. You
can use this intrinsic to pass the SeeView process name to another process so that
the other process opens the SeeView program.
This example starts up an Event Management Service (EMS) printing distributor
that logs EMS events to the SeeView program that started it:
#PAGE
returns a numeric value representing the current terminal page number. Values
returned range from 1 through #LASTPAGE+1, where #LASTPAGE is the last user
terminal page, and #LASTPAGE+1 is the Help page.
You can use this intrinsic to step through terminal pages relative to the current
page. For example:
#PAGESFREE
returns a string containing a list of integer numbers that represent terminal page
numbers that have no windows on them. For example, if there are seven user
pages, and windows are on terminal pages 1, 3, and 4, the #PAGESFREE intrinsic
returns “2 5 6 7”.
You can use this intrinsic is to find the lowest numbered unused terminal page in
the current environment. For example:
#PAGESUSED
returns a string containing a list of integer numbers that represent terminal page
numbers that have windows on them. For example if there are seven user pages,
and windows are on terminal pages 1, 3, and 4, the #PAGESUSED intrinsic returns
“1 3 4”.
TASK emsdist STARTUP "collector $0, type p, textout "
& #MYPROCESSNAME;
WINDOW emsdist CACHE LASTLINE EOFONLY NOFRAME;
IF #PAGE < #LASTPAGE THEN
PAGE #PAGE+1
ELSE
MSG "At the last page";
IF #TAKE #PAGESFREE <> "" THEN BEGIN
PAGE #TAKE #PAGESFREE;
WINDOW tacl;
END ELSE
BEGIN
MSG "No terminal pages available to build window.";
END;