Editor Commands

Editor commands of the Natural editor can be used during an SMA dialog. For example, editor commands can be used to modify a JCL skeleton, to modify a generated job, to add a Zap, etc.

This editor provides two command types:

  • editor commands, which are entered in the command field at the top of the screen

  • line commands, which are entered at the beginning of a text line. Line commands start with a comma to distinguish them from JCL lines which start with a period.

The following editor commands are available:

Editor Command Description
-- or t Position to top of text
++ or b Position to bottom of text
+nnn -nnn Position forwards or backwards nnn lines
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 (but not including) x-marked line; from line following y-marked line down to bottom; or all lines except the block of lines delimited by x and y.
export Export text to PC work file 7
import Import text from PC work file 7. The imported text will be positioned at the bottom of the source text.
save Save the current state of the source
scan Invoke the scan and replace function
scan <text> Scan for the specified text
sub Submit the job (only valid when editing generated JCL)
print Print source text

The following editor line-related commands are available:

Line Command Description
,x and ,y Mark lines
,cx or ,cx-y Copy the marked lines
,mx or ,mx-y Move the marked lines
,d Delete this line
,i Insert a new line after this line

The editor is exited by pressing PF3. If changes have been made, but not saved, SMA prompts the user as to whether the editor is to be exited with or without save.