Download Structured Data Environment (SDE)

Transcript
Command Line (Primary) Commands
LEFT
LEFT
Syntax:
>>- Left ---+-------------------------------------------+--------------------><
|
|
+----------------------+-- Cursor ----------+
|
+-- CSR -------------+
|
|
+----------------+-----+-- Data ------------+
|
|
|
|
+-- ALL ---------+
+-- Half ------------+
|
|
+-- Max -------------+
|
|
+-- Page ------------+
|
|
+-- n_cols ----------+
Description:
In multi record view and unless parameter ALL is specified, scroll to the left the display of field and header lines belonging to
records that are of the default record type. The display of all other visible records, header lines and shadow lines remains
unchanged.
In single record view, LEFT will display the fields belonging to a visible data record that has a lower line number than the record (or
record segment) that is in the current view. For display of segmented records, LEFT and RIGHT scroll through each segment in the
file, regardless of the record to which it belongs. NEXT and PREV may be used to scroll between secondary segments of the
current record only. LEFT CURSOR/DATA/HALF/PAGE are not applicable in single record view.
LEFT is assigned to PF10 by default. Any characters specified on the command line when the PFKey is hit will be concatenated to
the command and treated as a parameter string.
Where no parameter is specified, the scroll amount will be the value specified in the "Scroll>" field.
Multi Record View Scrolling:
Columns may have the HOLD flag set on by the SELECT command. These columns are static in the display and, like the prefix
area and Lrecl column, are unaffected by LEFT and RIGHT scrolling. Columns that have the HOLD flag set off are referred to as
floating columns.
The following interpretation of cursor location applies so that LEFT CURSOR can operate successfully on the appropriate data:
• Cursor is located at an offset within a column header line.
The cursor position is interpreted as being at the same offset within the data record that immediately follows the group of
header lines.
• Cursor is located within a column of type character (AN) but beyond the width of the character data.
The cursor position is interpreted as being the last position of the displayed character data.
• Cursor is located immediately to the left of a column of any type.
The cursor position is interpreted as being the the first position of the data displayed within that column.
Where the last column to be displayed is not of type character (AN), the magnitude by which the display is scrolled to the left is
always reduced to display all field data belonging to the last column. In addition, the display area must contain all column header
text belonging to the first column and, where the first column is not of type character (AN), it must also contain all field data
belonging to the first column. Therefore, to accomodate this, the magnitude by which the display is scrolled to the left may be
further reduced.
Because of these adjustments, it is possible that execution of a LEFT command may result in no change to the displayed data, in
which case LEFT PAGE is executed instead.
No adjustment is made for scrolling left into an offset within a character data column. i.e. where the last column of the display is of
type character, the last position of the column display need not be the last character of the character data. If the last column to be
displayed is of type character and the display width is too small to accomodate all the column's data and header text, the column
will be truncated. However, due to the other adjustments made for scrolling left, it may be impossible for some characters within the
character data to occupy the last position of the column display. In order to overcome this, the user would have to alter the display
area dimensions.
Attempting to scroll left beyond the start of the record will make the first data column the first column of the display.
Parameters:
CURSOR
CSR
The focus column becomes the last column of the scrolled display.
In addition to this, if the focus column is type character (AN) and the cursor is positioned on a character that is at an offset
2013-11-13 13:03:23
Structured Data Environment (SDE)
139