SeeView Manual
Sample Script
HP NonStop SeeView Manual—526355-004
C-3
The "scratch" cache is then sequentially read with
the READ scratch CACHE <index> option, and the SEARCH
statement is used to search the MyMenu cache for any
of the marks that appear below.
If a mark is found, then the rules contained in the
table below are used to form a FUP command and to fold
the marked filename into the "command template"
described below.
If the "command template" contains a circumflex ^
character then the marked filename is folded into the
command at the location of the circumflex character
(eg INFO ^,DETAIL). Otherwise the file is folded in
at the the end of the command (eg INFO).
If the "command template" contains a pound sign #
character then the user is prompted for the information
contained in the "prompt parameter" defined in columns
60:132 below (eg SECURE ^,"#" => "Enter Security RWEP").
{-------------------------------------------------------------------}
{ Command marks, rules, and prompt text. }
{-------------------------------------------------------------------}
{
{ Columns Definition
{ ------- ----------
{ [1] Command marks (see SEARCH statement in FileMaint proc)
{ [5] Window no/wait "." don't wait for window to fill else wait
{ [6:59] Command template "^" file, "#" prompt
{ [60:132] Command paramter prompt if # occurs in template
{
{...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+
D =>.DUP ^,# Dup to <fileset>.*
C => COPY ^,,SHARE,COUNT 57
X => COPY ^,,SHARE,COUNT 12,hex,recout 36,fold
F =>.INFO
G =>.GIVE ^,# Give <group>,<user>
I => INFO ^,DETAIL
P =>.PURGE ^# Enter ! to purge.
S =>.SECURE ^,"#" Enter Security RWEP
?MENU files { Contains file info for prompted subvolume
?MENU scratch { Temporary scratch cache
?PROC FileInfo { #sv }
{--------------------}
{ This proc is called from the popup prompt named "Enter Subvol."
{ The proc does a FUP INFO * on the #menuinput passed as PARM #sv;
{
{ The output from the INFO is automatically copied to the "FILES"
{ menu through the use of the TASK .. COPY option.
{
{ The COPY operation:
{ 1) Automatically stops the COPY when FUP prompts again.
{ 2) Allows the script to not wait for the FUP INFO operation.
{ 3) Allows a private copy of only the output from the INFO command.
{ 4) Prevents other FUP output from appearing in the "FILES" menu.
{----------------------------------------------------------------}