Professional Documents
Culture Documents
==============================================================================
------------------------------------------------------------------------------
09:33:27 ***** NATURAL HELP UTILITY ***** 2009-10-06
- Natural Editors -
------------------------------------------------------------------------------
==============================================================================
Code Function
O Overview
S Split-Screen Mode
E Editor Profile
P Program Editor
D Data Area Editor
M Map Editor
==============================================================================
- Natural Editors -
- Editors: Overview -
==============================================================================
To edit Natural objects invoke a Natural editor with the system command EDIT.
Which editor is invoked depends on the type of object edited:
- Global data areas, local data areas and parameter data areas are created
and edited in the 'data area editor'.
- Maps and help maps are created and edited in the 'map editor'.
All three Natural editors can be used in split screen mode, that is, the
first half of the screen can be used for editing an object and at the same
time another object can be displayed on the other half.
==============================================================================
- Natural Editors -
- Editors: Split-Screen Mode -
==============================================================================
Command Function (split-screen mode)
--------------------- --------------------------------------------------------
S SCAN <value> Scan for 'value' and mark line with a '>'. To further
scan for the same scan, enter "S SC" only.
==============================================================================
- Natural Editors -
- Editor Profile -
==============================================================================
When working with the Natural program editor or the Natural data area editor,
an EDITOR PROFILE can be defined by user.
The editor profile contains the definitions for PF and PA keys and various
other settings to be in effect during the edit session. The editor profile
can be modified by the users to suit their personnel editing requirements.
Source Save into Name of member into which the copy of the source is to
be saved. Default member name EDITWORK can be modified.
ADDITIONAL OPTIONS "Y" displays a window where three additional options
can be invoked:
- EDITOR DEFAULTS
- GENERAL DEFAULTS
- COLOUR DEFINITIONS
EDITOR DEFAULTS "Y" displays the EDITOR DEFAULTS window with the
following parameters:
Escape Character The escape character which must precede each line
for Line Command command; default character is ".".
Empty Line "Y" indicates that any line left blank should be
Suppression eliminated from the source as soon as pressed ENTER.
Source Size "Y" displays the actual size of the current object and
Information the remaining space available. In program editor, also
the current programming mode is displayed.
Absolute Mode for "Y" indicates that the SCAN and CHANGE commands operate
SCAN/CHANGE in absolute mode,i.e., the value to be scanned/changed
need not be delimited by blanks or special characters.
Range Mode for "Y" indicates that the SCAN and CHANGE commands operate
SCAN/CHANGE in range mode,i.e., the value to be scanned/changed must
be located within the range of lines delimited by the
X and Y line markers.
Direction Indicator "+" ("after") and "-" ("before") control the direction
of several editor commands.
GENERAL DEFAULTS "Y" displays the GENERAL DEFAULTS window with the
following parameters:
Dynamic Conversion "Y" converts the source code to upper-case, except for
of Lower Case textstrings that are enclosed in apostrophes and comment
(only relevant if Editing in Lower Case is set "Y").
Position of "TOP", "BOT" or a message line number can be specified
Message Line for the message line position in the editor.
Cursor Position "Y" indicates that the cursor is positioned in the edit
in Command Line command line each time the source has been modified.
Stay on "Y" indicates that the current screen will stay when
Current Screen the ENTER key is pressed. Forward/backward positioning
can be done by commands only. "N" indicates that using
the ENTER key positions to the next screen.
Prompt Window for "Y" indicates that a window is displayed as soon as you
Exit Function enter the EXIT command, where you can save the edited
source on the database and leave the editor, leave the
editor without any saving, or stay in the editor.
COLOUR DEFINITIONS "Y" displays the COLOUR DEFINITIONS window in which the
colours for various parts of the editor can be specified
(enter '?' to help for colour code).
CANCEL Cancels the current function and returns to the previous
screen (same as PF12).
DELETE Deletes the PROFILE from the database. Before deletion,
you are prompted for confirmation (same as PF11).
EXIT Invokes the exit function window (same as PF3).
FLIP Switches between the two PF-key lines (same as PF6/PF18)
REFRESH Displays the profile parameters currently valid (same
as PF13).
SAVE Saves all currently valid profile parameters on the
database, but does not leave the current function (same
as PF5).
==============================================================================
- Natural Editors -
- Natural Program Editor -
==============================================================================
Code Function
C Command Line
E Edit Commands
L Line Commands
K Special PF-Key Functions
S Cursor-Sensitive Commands
------------------------------------------------------------------------------
- Natural Editors -
- Program Editor: Command Line -
------------------------------------------------------------------------------
The Program Editor command line appears as:
EDIT COMMAND is entered between > and >; parameters must be separated by
blanks or input delimiter character.
Direction indicator controls direction of ADD, SCAN, .C, .M, and .I commands;
(+ indicates after, and - indicates before).
Object type, object name, and current library name appear on the command line.
------------------------------------------------------------------------------
- Natural Editors -
- Natural Program Editor: Edit Commands -
------------------------------------------------------------------------------
Edit Command Function
---------------- -------------------------------------------------------------
ADD n Add up to 9 blank lines on screen (if direction indicator
is +, lines are placed after last line, if direction indica-
tor is -, lines are placed before first line). Lines left
blank are deleted when ENTER is pressed.
DX, DY, DX-Y Delete X-marked line, Y-marked line, or a block of lines
delimited by X and Y.
EX, EY, EX-Y Delete source lines from top down to (not including) X-marked
line; from line following Y-marked line down to bottom; or
all lines excluding block delimited by X and Y.
EXIT Leave the editor with saving the source code. If the EXIT
flag is set in the profile, the EXIT function window appears.
You can use exit with or without save or resume in the editor
RESET Delete X and/or Y line markers, and marker set with .N line
command.
SCAN 'scanvalue' Scan for 'scanvalue'. If only SCAN is used, the SCAN window
appears. The lines in which the scan value is located is
marked with "S" to left of the line.
SCAN= +/- Scans for the next occurrence of the scan value, also the
direction can be determined.
SET ABS ON/OFF ON SCAN and CHANGE operate in absolute mode,i.e. the value
need not be delimited by blanks or special characters.
OFF Operate in non-absolute mode, i.e. the value must be
delimited by blanks or special characters (default).
SET ESCAPE char Escape character which must precede each line command.
Default is '.'
SET NUL ON/OFF ON Value scanned with SCAN is to be deleted. After deletion
the NUL value is OFF (default).
SET RANGE ON/OFF ON SCAN and CHANGE operate only within the range of lines
delimited by X and Y line markers. Default is OFF.
SET SIZE ON/OFF ON Program size displayed at bottom of editor screen.
Default is OFF.
SET STAY ON/OFF ON Current screen remains when ENTER key is pressed.
(Forward/backward positioning with edit commands only.)
OFF Positioning to next screen with ENTER key (default).
SET TYPE type Change type of object to be edited. Type may be PROGRAM,
SUBROUTINE, SUBPROGRAM, HELPROUTINE, COPYCODE, TEXT or CLASS.
XY 0010 MOVE
X 0010 MOVE A TO B 0030 TO A
0020 WRITE A B ....
Y 0030 MOVE B TO A 0100 ....
XY 0010 A TO B
.... 0020 WRITE A B
0100 .MX-Y 0030 MOVE B
The block of text was moved, starting with the 'A' on line 0010 and ending
with the 'B' on line 0030; it was inserted after the line in which line
command '.MX-Y' was entered.
------------------------------------------------------------------------------
- Natural Editors -
- Program Editor: Cursor-Sensitive Commands -
------------------------------------------------------------------------------
Code Function
F Editor Fields
E Edit Commands
L Line Commands
------------------------------------------------------------------------------
- Natural Editors -
- Data Area Editor: Editor Fields -
------------------------------------------------------------------------------
Field Explanation
------------ -----------------------------------------------------------------
I Indicator (not modifiable by user):
E Definition error has been detected.
A Array bounds have been defined via '.E' line command.
I Initial value has been defined via '.E' line command.
M Edit mask has been defined via '.E' line command.
S Both initial value and edit mask have been defined.
+ More than one entry has been defined using '.E' command.
T Type:
B Data block
C Constant or counter variable in views
G Group (within a view only)
M Multiple-value field
O Handle of object
P Periodic group
R Redefinition
U Globally Unique Identifier (GUID)
V View
* Comment
blank Elementary field
------------------------------------------------------------------------------
- Natural Editors -
- Data Area Editor: Edit Commands -
------------------------------------------------------------------------------
Edit Command Function
------------------ -----------------------------------------------------------
CATALOG data-area Catalog the data area definition currently in the editor.
EX, EY, EX-Y Delete source lines from top down to (not including)
X-marked line; from line following Y-marked line down to
bottom; or all lines excluding block delimited by X and Y.
CATALOG data-area Catalog the data area definition currently in the editor.
DX, DY, DX-Y Delete X-marked line, Y-marked line, or a block of lines
delimited by X and Y.
EX, EY, EX-Y Delete source lines from top down to (not including)
X-marked line; from line following Y-marked line down to
bottom; or all lines excluding block delimited by X and Y.
EXIT Leave the data area editor.
READ data-area Read existing data area definition into edit area.
SET PREFIX abc Add prefix abc to every entered/modified variable name.
SET SCAN Set SCAN for a value scanned in the COMMENT column or in
COMMENT/NAME the NAME column.
SET STAY ON/OFF ON Current screen remains when ENTER used (forward/
backward positioning with commands).
OFF Position to next screen.
SET TYPE type Set object type to: G (global), L (local), P (parameter).
STOW data-area Save and catalog data area definition currently in edit
area; definition is checked prior to being cataloged.
------------------------------------------------------------------------------
- Natural Editors -
- Data Area Editor: Line Commands -
------------------------------------------------------------------------------
Line Command Function
---------------- ------------------------------------------------------------
.C Copy line in which command is entered.
.CX .CY Copy X-marked line or Y-marked line.
.CX-Y Copy block of lines delimited by X and Y markers.
.I(obj) Insert object. If object is not a data area, you can choose
if all variables and/or parameters are inserted.
.I(obj,sss,nnnn) Insert data area. sss defines the line number where to
start, nnnn defines the number of inserted lines.
==============================================================================
- Natural Editors -
- Natural Map Editor -
==============================================================================
Code Function
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Map Editor Menu -
------------------------------------------------------------------------------
Code Function
------------ -----------------------------------------------------------------
D Display name, format, mode, position, and number of processing
rules for each field.
I Initialize a map.
S Save map.
ATTRIBUTES
B Blinking N Non-display
C Cursive/italic U Underlined
D Default V Reversed-video
I Intensified Y Dynamic (assigned by program)
Column Shift To use all 80 columns in a map, specify '1'; else use '0'.
Zero Print 'Y' Field value of all zeros displayed with one zero;
'N' Zero value displayed as blank (default).
Manual Skip 'Y' Cursor not moved automatically to next field at execution.
Decimal Char. Character used as decimal notation (can be changed with GLOBALS
command only).
Standard Keys 'Y' Last two lines of map remain empty for entering function-key
specifications at map execution;
'N' All lines are used for map.
Justification Type of field justification; R (right), L (left).
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Positional Commands / PF-Key -
------------------------------------------------------------------------------
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Line Commands-
------------------------------------------------------------------------------
Command Function
--------- -------------------------------------------------------------------
..A Array table definition.
..C Center a single line. Two '..C' commands on same screen will center
first line and adjust rest of selected lines.
..D Delete single line. Two '..D' commands on same screen will delete
block of lines delimited by commands.
..Dn Delete the line and n-1 lines below it.
..D* Delete the line and all lines below it. If delete operation affects
array elements, the array is deleted in total.
..E Invoke extended field editing for all fields contained in line.
Two '..E' commands entered on same screen cause all fields within
range of lines delimited by commands to be displayed for editing.
..En Invoke extended field editing for the line and n-1 lines below it.
..E* Invoke extended field editing for the line and all lines below it.
..Fc Fill empty spaces of line with the character 'c'.
..J Join line with line below it. Two '..J' commands on same screen
joins range of lines delimited by commands.
..M Move line in which command was entered below the cursor line.
Two '..M' commands on same screen cause block of lines delimited
by commands to be moved below the cursor line.
..Mn Move line and n-1 lines below it below the cursor line.
..M* If line is below line containing cursor, move it and all lines
below it, to position below cursor. If line is above line contain-
ing cursor, move it and as many lines as possible, to position
below cursor.
..R Repeat once all text constants on line in which command is entered.
Two '..R' commands entered on same screen cause text constants
within block delimited by commands to be repeated.
..Rn Repeat all text constants on this and n-1 following lines. If
cursor is below command line, text is repeated n times.
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Field Commands -
------------------------------------------------------------------------------
Command Function (Specify range using (n), (*), or 2 or more field commands)
-------- --------------------------------------------------------------------
.A Define an array (applies to single field only and not range). Array
is positioned with upper left corner at position where command
entered. Array is redefined by applying '.A' to one of its elements.
.S Split line or line range, i.e. enter '.S' in field where splitting
to begin,place cursor at target position for right portion of field.
Examples:
:000 (3 positions, numeric right justified)
:99.9 (3 positions, numeric with decimal point)
:S9(6) (6 positions, signed numeric)
:HHHH (4 positions, hexadecimal)
:X(7) (7 positions, alphanumeric)
Field assigned dummy name by map editor; must be assigned name prior to map
execution using either extended field editing or post assignment function.
Select field from user view or data definition: Specify object class and
then the object name. Valid object classes are:
A Parameter data area L Local data area S Subroutine
C Predict conceptual files M Map V View
G Global data area N Subprogram
H Helproutine P Program
Position view on screen with commands (+, -, ++, --, +n, -n).
To include user view field, enter delimiter character followed by the number
(left side view) or letter (right side view) of desired field; once all have
been selected, press enter to incorporate them into map definition. (Notation
'M' indicates selected field contains edit mask.) User view field name is used
as the map field name for fields selected from a user view.
Examples:
(*TIME
(*DATE
(*APPLIC-ID
'Post Assignment Function' is used to assign field name and attributes of user
view field or DEFINE DATA definition to a field which has been previously
defined (in layout) on the screen.
Enter the user view field number (or letter) as shown in view window directly
behind the delimiter of the field.
Function can only be used if formats of layout agree with field definition.
(N and P considered identical numeric.)
Function cannot be used for view arrays if one or more dimensions of that
array are smaller than dimensions of the array in the layout.
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Extended Field Editing -
------------------------------------------------------------------------------
Entry Explanation
----------- ------------------------------------------------------------------
Fld or Arr Field or array name.
If field is taken from user view or data definition, name is
same as user view or data definition; if field is system variable,
name is same as variable; if field is neither of above, a dummy
name is assigned. Field must have name prior to map execution.
Field command .E available for long field names.
AD Field attributes.
CD Colour attributes.
SB Selection box.
Define an array for the displayed values of the selection box.
This variable must be specified in the parameter definition of
the map editor.
Automatically a 'V' for the selection box will be placed behind
the map field.
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Array and Table Definition -
------------------------------------------------------------------------------
Initiate array definition with field command '.A'; or with line command '..E'
and then marking desired field with function code 'A'.
The 'Table Definition' is used to define occurrences and layout of more than
one array at the same time (arrays must begin on same map line).
Starting From Starting index value for a dimension (numeric value or variable
name). If variable is not defined as map field, N7 is assumed.
------------------------------------------------------------------------------
- Natural Editors -
- Natural Map Editor: Processing Rules -
------------------------------------------------------------------------------
Field-Related Processing Rules
------------------------------
1. Inline Processing Rules:
Are defined within map source, no name assigned; Predict is not required.
2. Free Predict Rules:
Have name assigned and stored in Predict dictionary.
To edit, enter rule during map creation and assign name to it.
3. Automatic Predict Rules:
Are defined by Predict administrator; apply to data base fields and all
automatic rules for that field are linked to map definition.
It can't be modified with map editor, but may be assigned a different
rank with 'P=n'.
If Predict rules are modified, or new rules are linked to a database field,
it is sufficient to recatalog map. If a field with linked Predict rules is
renamed, the rules are lost and must be linked again.
Function-Key-Related Processing Rules
-------------------------------------
1. Inline processing rules,
2. Free Predict rules.
..E Invoke processing rule editing (function code 'P' must be placed
next to field to be edited).
Note: Switch between split and full screen with PF9. Upper window shows fields
defined in map.
To select a rule from all free Predict rules, enter '?' in the rule
name field of the processing rule editing screen.
For optimum performance, the following assignments are recommended for ranks
of processing rules.