HPlogo EDIT/3000 Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 OPERATING EDIT/3000

2-5. RUNNING EDIT/3000 IN AN INTERACTIVE SESSION

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

To run EDIT/3000 in an interactive session, initiate the session with the MPE :HELLO command, then use the MPE :EDITOR command as shown in the following example.

Figure 2-1 Running EDIT/3000 in an Interactive Session

   :HELLO MANAGER.SCR



   HP3000 / MPE III B.01.02. TUE, JUN 3, 1980, 1:49 PM





   :EDITOR

   HP32201A.7.08 EDIT/3000 TUE, JUN 3, 1980, 11:28 AM

   (C) HEWLETT-PACKARD CO. 1980

   /ADD

        1      THIS IS THE   FIRST LINE OF THE WORK FILE

        2      (A NEW FILE   IN THIS EXAMPLE)

        3      / /

   ...

   /LIST  ALL

        1      THIS IS THE   FIRST LINE OF THE WORK FILE

        2      (A NEW FILE   IN THIS EXAMPLE)

   /END

   IF IT  IS OK TO CLEAR RESPOND "YES"

   CLEAR?  YES



   END OF SUBSYSTEM

Once accessed, EDIT/3000 displays a slash (/) as a prompt character and waits for a command. The ADD command causes EDIT/3000 to prompt for input by printing a line number. Input then is entered from the terminal. To terminate the ADD command, two slashes may be used as in the example, or CONTROL Y may be used (press and hold CONTROL (or equivalent), and press Y). EDIT/3000 responds by displaying..., then displays another prompt for another command. The LIST ALL command causes EDIT/3000 to copy all records in the WORK file to the OUTPUT file (the standard list device—the terminal in this case- unless specified otherwise). The END command terminates EDIT/3000 operation. Note that EDIT/3000 asks if it is OK to clear (the WORK file). If the response is YES (or Y), EDIT/3000 operation terminates and MPE/3000 prints the message END OF SUBSYSTEM. If the response is other than YES (or Y), EDIT/3000 displays a message stating that the clear is not confirmed and then displays a prompt character for another command.

If the contents of the WORK file have not been saved with a KEEP command, the WORK file contents will be lost when a CLEAR is confirmed.

See Sections III and IV for descriptions of EDIT/3000 commands.

Feedback to webmaster