SP.VIEW

SP.VIEW

Top  Previous  Next

 

The SP.VIEW command views and, optionally, prints records from $HOLD or other files.

 

 

Format

 

SP.VIEW {file} {item | sort} { LPTR n }

 

where

 

fileis the file to be processed. If omitted, $HOLD is used.

 

itemis the record id of the record to be processed. If omitted, a pick list of records is displayed.

 

sortcontrols the sort order of the displayed item list.

 

LPTR nspecifies the default print unit to be used. If omitted, print unit 0 is used.

 

 

If only one name is specified on the command line, it is assumed to be the file name if a corresponding VOC F or Q-type record exists and there is no record of that name in $HOLD.

 

When the item name is omitted, the default behaviour of SP.VIEW is to show an alphabetically sorted list of available items. The optional sort clause allows this sort order to be modified. It has the same form as a query processor BY or BY.DSND clause, including possible use of the NO.CASE qualifier, for example,

BY DTM

where DTM is a data item defined in the dictionary of the file being processed. Use of the sort clause will destroy any existing default select list.

 

 

The SP.VIEW command allows users to view and print records. If no item is specified, a pick list of records in file is displayed. The cursor keys, page up, page down, home and end keys can be used to move around within this list. Equivalent actions can be performed using the letter keys or the SED style control keys.

 

Cursor up

U

Ctrl-Z

Move up one line

Cursor down

D

Ctrl-N

Move down one line

Page up

P

Ctrl-V

Move to previous page

Page down

N

Esc-V

Move to next page

Home

T

Esc-<

Move to top of list

End

B

Esc->

Move to bottom of list


Q


Quit from program. Requires use of return key to confirm

Return



Dive into selected item

 

 

After an item has been selected, either as described above or by specifying the item name on the command line, the text of the given record is displayed. The cursor keys, page up, page down, home and end keys can be used to move around within the data. Equivalent actions can be performed using the letter keys or the SED style control keys.

 

Cursor up

U

Esc-Z

Move to previous page

Cursor down

D

Ctrl-N

Move to next page

Cursor right

R

Ctrl-F

Pan right

Cursor left

L

Ctrl-B

Pan left

Page up

P

Ctrl-V

Move to previous page

Page down, Return

N

Esc-V

Move to next page

Home

T

Esc-<

Move to top of record

End

B

Esc->

Move to bottom of record


Q


Quit from record. Requires use of return key to confirm


S


Spool item


X


Delete item. Prompts for confirmation.

 

The S option prompts for the print unit (defaulting to that in the LPTR option, if used), asks whether line numbering is to be used and then prints the item.