.E Command

The .E command invokes the system Editor to edit the statements in the stack. Each statement is treated as a separate line, like an attribute in a file item. This command is useful for modifying more than one statement in the stack.

Format

.E [n] [(process)]

Parameter(s)

n

Number of the statement in the stack. If no number is specified, the .E command positions the current line pointer at line 1.

process

Number of a process other than your own. This option allows you to edit statements in the stack of the specified process. You must have SYS2 privileges to use this option.

When you have finished editing the stack, save your edits and return to the TCL prompt by entering the FI command. Use the EX command to return to the TCL prompt without saving your edits. See the mvBase Editor User Reference Guide for complete information about all Editor commands.

Editing Statements in the Stack

The following example invokes the Editor and changes all the LIST commands to SORT commands:

>.E

TOP

001 LIST CUSTOMERS LAST-NAME FIRST-NAME

.R/LIST/SORT

001 SORT CUSTOMERS LAST-NAME FIRST-NAME

.2

002 LIST CUSTOMERS LAST-NAME

.R/LIST/SORT

002 SORT CUSTOMERS LAST-NAME

.FI

 

>

The following example edits the stack, and positions the current line pointer at line 6 upon entry:

>.L6

001 LIST CUSTOMERS LAST-NAME FIRST-NAME

002 LIST CUSTOMERS LAST-NAME

003 SORT CUSTOMERS BY LAST-NAME LAST-NAME

004 WHO

005 WHERE

006 LIST CUSTOMERS WITH LAST-NAME EQ "SMITH"

>.E6

TOP

006 LIST CUSTOMERS WITH LAST-NAME EQ "SMITH"

.R/CUTS/CUST

006 LIST CUSTOMERS WITH LAST-NAME EQ "SMITH"

.FI

>.L6

001 LIST CUSTOMERS LAST-NAME FIRST-NAME

002 LIST CUSTOMERS LAST-NAME

003 SORT CUSTOMERS BY LAST-NAME LAST-NAME

004 WHO

005 WHERE

006 LIST CUSTOMERS WITH LAST-NAME EQ "SMITH"

 

>

See Also

TCL Stacker Command Reference