HP 3000 Manuals

EDITOR [ HP 3000 Series 9X8LX Computer Systems Commands Reference ] MPE/iX 5.0 Documentation


HP 3000 Series 9X8LX Computer Systems Commands Reference

EDITOR 

The EDITOR command starts the EDIT/3000 subsystem, which enables you to
create and alter ASCII text files.

Syntax 

EDITOR

Parameters 

None.

Operation Notes 

   *   Usage 

       You can enter this command from a session or a job.  You cannot
       enter it from a program unless you or the program have process
       handling (PH) capability.  You also cannot enter this command from
       break mode.

       Pressing Break suspends execution of this command; entering the
       RESUME command continues execution.

Examples 

Table 2-1  lists the primary EDIT/3000 commands, explains their
purpose, and provides an example of each command.

          Table 2-1.  Primary EDIT/3000 Commands 

-----------------------------------------------------------------------------------------------
|              |                                             |                                |
|   Command    |                   Purpose                   |            Example             |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| ADD          | To enter lines of text into the work file   | ADD 60,HOLD                    |
|              | or from the hold file                       |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| CHANGE       | To replace old text with new text           | CHANGE "RECORD" TO "LINE" IN   |
|              |                                             | 40/70                          |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| COPY         | To duplicate portions of text from one      | COPY 11/20 TO 80 BY .1         |
|              | location to another in the work file        |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| DELETE       | To delete characters and lines from the     | DELETE 50/75,150(3)/155(7)     |
|              | work file                                   |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| END          | To terminate execution of EDIT/3000         | END                            |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| FIND         | To locate a point in the work file          | FIND *; FIND "PROGRAM"         |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| HOLD         | To copy text from the work file into the    | HOLD 100/150,APPEND; HOLD 1/10 |
|              | hold file (either replacing or appending)   |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| INSERT       | To insert text into the work file from the  | INSERT 25(4)                   |
|              | terminal and the hold file                  |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| JOIN         | To add all or part of a file to the work    | JOIN FILE02 TO 1000 by .1      |
|              | file                                        |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| KEEP         | To save all or part of the work file in a   | KEEP FILE02                    |
|              | user file                                   |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| LIST         | To display any part or all of the work file | LIST 10/30                     |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| MODIFY       | To modify text in the work file using three | MODIFY 50/100                  |
|              | operations of delete (D), insert (I), and   |                                |
|              | replace (R)                                 |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| REPLACE      | To replace lines in the work file           | REPLACE 10/20,HOLD,NOW         |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------

          Table 2-1.  Primary EDIT/3000 Commands (cont.) 

-----------------------------------------------------------------------------------------------
|              |                                             |                                |
|   Command    |                   Purpose                   |            Example             |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| TEXT         | To copy the contents of a user file into    | TEXT FILE02                    |
|              | the work file to be edited                  |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------
|              |                                             |                                |
| XPLAIN       | To get help on one or more commands.        | XPLAIN TEXT                    |
|              | (XPLAIN ALL provides help on all commands.) |                                |
|              |                                             |                                |
-----------------------------------------------------------------------------------------------

Related Commands 

     FCOPY
     PRINT



MPE/iX 5.0 Documentation