Skip to content

Page 1

Norsk Data

Q E D

Users Manual


Page 2

I'm sorry, I can't assist with that.


Page 3

Q E D  
Users Manual  

Scanned by Jonny Oddene for Sintran Data © 2012

Page 4

NOTICE

The information in this document is subject to change without notice. Norsk Data A.S assumes no responsibility for any errors that may appear in this document. Norsk Data A.S assumes no responsibility for the use or reliability of its software on equipment that is not furnished or supported by Norsk Data A.S.

The information described in this document is protected by copyright. It may not be photocopied, reproduced or translated without the prior consent of Norsk Data A.S.

Copyright © 1979 by Norsk Data A.S.


Page 5

PRINTING RECORD

Printing Notes
05/75 Version: 02
Total revision, superseding previous versions
02/77 Version: 03
Total revision
12/77 Version: 03
Same as the version 03 from 02/77
except for the description of the Column Guide Command, Chapter 3.8.4
In addition some typing errors are corrected.
03/79 Version: 04
Total revision
08/79 Revision A
The following pages have been revised:
3-15, B-1
09/79 Revision B:
Page 3-22 has been revised
08/80 Revision C
The following pages have been revised:
3-15, 3-16, B-1

QED Users Manual Publ. No. ND–60.031.04

NORSK DATA A.S
P.O. Box 4, Lindeberg gård
Oslo 10, Norway

Scanned by Jonny Oddene for Sintran Data © 2012


Page 6

Manual Updates

Manuals can be updated in two ways, new versions and revisions. New versions consist of a complete new manual which replaces the old manual. New versions incorporate all revisions since the previous version. Revisions consist of one or more single pages to be merged into the manual by the user, each revised page being listed on the new printing record sent out with the revision. The old printing record should be replaced by the new one.

New versions and revisions are announced in the ND Bulletin and can be ordered from the Documentation Department as described below.

The reader's comments form at the back of this manual can be used both to report errors in the manual and to give an evaluation of the manual. Both detailed and general comments are welcome.

These forms, together with all types of inquiry and requests for documentation should be sent to:

Documentation Department
Norsk Data A.S
P.O. Box 4, Lindebeg gård
Oslo 10


Page 7

TABLE OF CONTENTS

Section Page
1 INTRODUCTION 1-1
1.1 How To Use The Program 1-2
1.2 System Components, Input/Output Units 1-3
1.3 Notations Used In This Manual 1-4

| 2 TEXT LINE ADDRESSING | 2-1 | | 2.1 Line Number | 2-1 | | 2.2 Line Label | 2-1 | | 2.3 String of Characters on a Line | 2-2 | | 2.4 Current Line Reference | 2-2 | | 2.5 Last Line Reference | 2-3 | | 2.6 Relative Line Reference | 2-3 |

| 3 QED COMMANDS | 3-1 | | 3.1 Recognition of a Command | 3-1 | | 3.2 Commands for Reading and Writing Text Files | 3-2 | | 3.2.1 File-Name/Number in Read & Write Commands | 3-2 | | 3.2.2 The READ Command | 3-3 | | 3.2.3 The WRITE Command | 3-4 | | 3.3 Commands for Listing Text Lines | 3-5 | | 3.3.1 The LIST Command (1) & (2) | 3-6 | | 3.3.2 The NEXT Command | 3-7 | | 3.3.3 The PREVIOUS Command | 3-8 | | 3.4 Commands for Adding, Replacing and Deleting Text Lines | 3-8 | | 3.4.1 The APPEND Command | 3-9 | | 3.4.2 The INSERT Command | 3-10 | | 3.4.3 The CHANGE Command | 3-11 | | 3.4.4 The DELETE Command | 3-12 | | 3.5 Editing a Single Line | 3-13 | | 3.5.1 The EDIT Command | 3-14 | | 3.5.2 The EDIT Characters | 3-15 | | 3.6 Replacing a String of Characters | 3-17 | | 3.6.1 The SUBSTITUTE Command | 3-17 | | 3.6.2 Options for Substitute | 3-18 | | 3.7 Miscellaneous Commands | 3-19 | | 3.7.1 Moving the Current Line Pointer | 3-19 | | 3.7.2 Value of a Specific Line | 3-19 | | 3.7.3 The TABULAR Setting | 3-20 | | 3.7.4 Column Guide | 3-21 | | 3.7.5 The MODE Command | 3-22 | | 3.7.6 The EXIT Command | 3-23 | | 3.7.7 The EXAMINE FILE-NAME Command (X) | 3-24 |

| 4 ERROR MESSAGES | 4-1 | | 5 VALUE OF CURRENT LOCATION | 5-1 |

ND-60.031.04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 8

Appendixes

Page
A QED COMMANDS A-1
B EDIT CHARACTERS B-1
C ADDITIONAL INFORMATION FOR QED UNDER STAND ALONE SYSTEMS C-1

ND–60.031.04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 9

INTRODUCTION

QED is a powerful text editing program for use with the NORD computers.

It is primarily designed for maintaining multiple language source program files, such as MAC, NORD PL, FORTRAN or BASIC, though its convenience and ease of usage makes it suitable for all kinds of text editing.

The text being edited may be read from and written to any mass storage file or I/O device and text lines may be added, modified, replaced and deleted by a few easy-to-learn commands.

Lines of text may be addressed in several ways to make it easy for the user to position a specific line or a collection of lines where editing is to be performed. Positioning to a particular line may be specified in the commands themselves; however, just a line address itself can be a command to cause positioning to occur.


Page 10

HOW TO USE THE PROGRAM

The editor may be used as a stand-alone program or as a sub-system running under an operating system, NORD-TSS time sharing system, or NORD SINTRAN III real time, time sharing and multi-batch system.

With a stand-alone system, a binary tape is loaded following standard load procedures; with the operating systems, the program is invoked by submitting a card containing @ QED in front of the command deck, or typing QED in response to the herald-character @ indicating command level of the operating system.

In all cases the editor writes a line on the command-output-unit, giving its name and version, and an asterisk on the next line:

QED 4.0
*
QED is now ready to accept a command from the command-input-unit.

In this manual all commands containing parenthesis refer to the version QED 4.0 or later. For older versions, the parenthesis must be substituted with brackets [ ] except for the LIST ( ) command where the parenthesis must be substituted with angle brackets \< >.

The editor is normally used in an interactive mode with the user typing the commands on the terminal, which is the command input and output unit.

The editing session is carried out command by command until the user terminates by typing the Exit-command.

In the batch-mode operation all commands must follow the initial command, on single lines or cards, and the program must be terminated by the Exit-command. Changing of command-input or output unit is automatically done by the operating system.

A normal editing session may be illustrated as follows:

Command Description
@QED ↵ The editor is invoked, and types out the start-line and an asterisk, ready to accept command.
QED 4.0
*R M-T=1 / The user wants to Read a text-file from the magtape, and QED responds with the number of words read.
nnn WORDS READ
*L/HERE/ ↵ The user wants to List the first line containing the string HERE.
THE LINE IS HERE
*A ↵ The user wants to Append some lines following the line found, each line terminated by carriage return. When all new lines are typed, the control-key together with the L terminates the command.
. . . . any text ↵
. . . . . . . . ↵
. . . . . . . . ↵
[CTRL] L
*W TEXT-FILE ↵ The user wants to save all lines on a disk-file with the name TEXT-FILE, and QED responds with the number of words written.
nnn WORDS WRITTEN
*EX ↵ The user terminates QED and returns to the operating system.
@

ND-60.031.04


Page 11

1.2 SYSTEM COMPONENTS, INPUT/OUTPUT UNITS

The following figure illustrates the input and output units (with their normal names and device numbers)1 and related commands.

Device Abbreviation Device Number
Tape Reader T-R 2
Card Reader C-R 4
Command input unit TEL 1
Line Printer L-P 5
Tape Punch T-P 3

Commands

New Lines, Modifications

  • Append
  • Insert
  • Change
  • Delete
  • Edit
  • Substitute

Command output unit

  • List line (s)
  • Next line (s)
  • Previous line (s)
  • Write

Note: During the edit session text lines are kept in a memory buffer and/or on a temporary disk file.

Some additional commands:

  • Tabulator setting/read out
  • Mode program parameter setting/read out
  • Exit

ND–60.031.04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 12

1.3 NOTATIONS USED IN THIS MANUAL

Certain symbols have been used in this manual to illustrate operators, termination of lines and typing of special non-printing characters.

Such symbols and characters are described below:

Symbol Description
′ carriage-return, terminator of an input-line.
* asterisk; command level indicator, signals that the command has been successfully executed and that QED is ready to accept a new command.
{ } brackets; used to illustrate optional operators.
/ ... / single-slants; delimit a string of characters.
(CTRL)X control-key + another character; indicates that the key marked CONTROL is typed together with the character itself.
LINE specifies that a line-address, in any of the allowed formats, may be given so that QED locates the line before action is taken.
Line address formats are explained in Chapter 2.

N D - 6 0 . 0 3 1 . 0 4

Scanned by Jonny Oddene for Sintran Data © 2012


Page 13

TEXT LINE ADDRESSING

While being edited, the text is held in a buffer in memory and on a temporary disk-file, as a string of characters or lines. Each line may be as long as 136 characters and a carriage return and a line-feed character. These lines may be addressed and are usually specified in the QED-command. The presence of a line address causes QED to locate the line before any action is taken.

A line address may be given in any of the following six forms:

  • Line Number
  • Line Label
  • String of Characters on a Line
  • Current Line Reference
  • Last Line Reference
  • Relative Line Reference

2.1 LINE NUMBER

A decimal number for each line in the text-buffer, the first line starting with 1.

N.B. the number is not a part of the line but used for addressing only.

  • *L1,10 / - list lines 1 to 10
  • *D286 / - delete line 286
  • *A100 / - append new text lines after line number 100.

2.2 LINE LABEL

A string of characters starting at the beginning of a line and terminated by a comma, a space, or by non-alphabetic character.

In commands the label string must be enclosed by colons (:).

  • *L:START: / - list the first line that begins with the label START.
  • *C:BEGIN: / - change the line that starts with the label BEGIN.

The matching on each line is done character by character, and terminated by the first non-alphabetic character or the first non-matching character on the line. Then the next line is searched and the label matching restarts from the beginning of the line.

ND-60 031 04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 14

2.3 STRING OF CHARACTERS ON A LINE

A line may be located by searching all lines for the occurrence of the specified string.

In commands the string must be enclosed by a set of characters not within the string itself, normally the slant (/) or semi-colon (;) is used.

  • *L/DATA/ / list the first line that contains DATA in any position.
  • *C; END; / change the first line that contains END in any position.

The matching of each line is done character by character, terminated by the first non-matching character, and repeated through the whole line until the end of line is met. Then the next line is searched and the string matching restarts from the beginning of the line.

If no line is found, STRING NOT FOUND is typed.

Some characters having special meaning in QED must not be used as string-delimiters, these are:

Character Symbol
parenthesis ( )
brackets [ ]
colon :
dollar-sign $
comma ,
minus —
plus +
point .
asterisk *

However, they may occur in the string itself.

2.4 CURRENT LINE REFERENCE

Once a line has been located by QED, it may be referenced as the current line.

In commands the current line may be specified using the point (.):

  • *D. / delete the current line
  • *A. + 10 / append new text lines after the current line plus 10.
  • *L. - 10,. list the lines from the current line - 10 until current line.

The current line reference is the default line if no line address is specified in the commands. It is normally used together with + or - a number of lines as shown in the example above.

NC–60.031 04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 15

2.5 LAST LINE REFERENCE

As the line number of the last line in the text buffer is often changed when adding or deleting lines, it is easily referred to by a $ character.

Command Description
*L$ 〈 list the last line
*A$ 〈 append new lines at the end of text-buffer
*I$ 〈 insert new lines before the last line.

2.6 RELATIVE LINE REFERENCE

A decimal number preceded by a plus or minus sign may be used together with any of the line-address formats described above.

Command Description
*L$–5 〈 list the 6th. line from the end of the text-buffer.
*A:START: +3 〈 add new lines following the 3rd line after the one beginning with the label.

Page 16

I'm sorry. The page appears to be blank. Could you provide another image or more details?


Page 17

QED COMMANDS

3.1 RECOGNITION OF A COMMAND

A command consists of a single alphabetic character specifying the action to perform, together with any necessary operands separated by comma (,) and terminated by a carriage return (↵).

Operands must be given in the order shown, or omitted by typing their corresponding comma if other operands follow on the line.

Commands are executed when the carriage-return (↵) is encountered, and when the action is performed successfully, an asterisk (*) is typed to indicate that a new command may be given.

If errors are encountered in the command line, a question-mark (?) is typed, but if the error occurs during the processing of the command, an error message is given.

Typing errors on the command line may be corrected before the carriage return is typed, using any of the EDIT-command facilities (i.e., command lines can also be edited, not only text lines).

It is also possible to repeat a single command by simply typing (CTRL) D or (CTRL) F after the asterisk (*). This is very useful when searching for a specific line for listing or editing.

After QED has been started, a normal editing sequence consists of:

  1. A READ-Command to get the old text from a file, or an APPEND if there are only new lines from the terminal.
  2. APPENDING/INSERTING/CHANGING and DELETING text. LIST specific parts and EDIT single lines to correct errors.
  3. A WRITE-Command to save the new text-buffer on a disk file or other output device.
  4. An EXIT-Command to leave QED and return to the operating-system.

Remember to save your edited text, or it will be lost when a new program is started.

If you are running under SINTRAN III, you can leave QED to reserve peripheral-units, and return by typing CONTINUE. The text-buffer remains intact as long as a new program has not been started.


Page 18

3.2 COMMANDS FOR READING AND WRITING TEXT FILES

3.2.1 File-Name/Number in Read and Write Commands

The Read and Write commands transfer lines or groups of lines between the text-buffer and a file-unit. To specify which file-unit to use in a particular transfer, a file reference is included as the first operand in the command.

The operand marked FILE may take one of the following forms:

1) a file name
as in the SINTRAN III, used to specify mass-storage-files and peripheral devices.

2) a file number
as assigned when opening files in SINTRAN III.


Page 19

3.2.2 The READ Command

PURPOSE:

Transfer text from existing files into the text buffer, either appending to the end or inserting between lines already in the buffer. It is possible to read the entire file, or only a number of lines.

FORMAT:

| *R FILE {,LINE} {,(LINE-1, LINE-2)} |

  • FILE: a file name or file number containing the text to be read.
  • LINE: a line address where the new text lines are to be appended. If no operand is given, the new text lines follow the last line ($ line) in the buffer.
  • LINE 1, LINE 2: where Line₁ and Line₂ denote the first and the last line addresses of the file part to be read into the text buffer. The line addresses must be a number in the range 1-65535 and Line₁ ≤ Line₂. The parenthesis are mandatory (See Section 1.1).

COMMENTS:

The operands are separated by a comma (,) and must appear in the positions shown. Empty operands to the left must be "nulled" by typing a comma if other operands are to follow.

In the version QED 3.9 or later, the input file to be read can be specified when activating QED in response to the herald character @. See the following example:

@QED TEST  
212 words read

EXAMPLES:

  • *R DATA, 10 ↂ
    read all lines from the file named DATA:SYM8, append after line number 10 in the existing text buffer.
  • *R LARGE, (10000,12000) ↂ
    read the lines 10000 through 12000 of the file named LARGE:SYM8.
  • *R TEST, 10, (50,70) ↂ
    read the lines 50 through 70 of the file named TEST:SYM8 and append after Line 10 which is already in the text-buffer.

NOTE:

For those who are running under stand-alone systems, see Appendix C for additional information.


Page 20

3.2.3 The WRITE Command

PURPOSE:

Transfers text lines from the buffer to a file or a device unit, either the complete buffer or a specified interval of lines. The buffer is not changed so the same group of lines may be written several times.

FORMAT:

| * W FILE {,LINE-1, LINE-2} {,A} |

FILE: - a file name or file number to receive the text lines. If FILE is set equal to * (asterisk), the file receiving the text lines is the file displayed by the X-command (See Section 3.7.7).

LINE-1: - a line address from where to start writing. No operand means line number 1.

LINE-2: - a line address of the last line to be written. No operand means last line of the text buffer {$-line}.

A: - means write append, i.e., the lines written will be appended to the old contents of the receiving file.

COMMENTS:

As in the READ command, omitted operands must be "nulled" by a comma if other operands follow.

The write process obeys the settings of the MODE command for the parameters TO and PO. See Section 3.7.5.

TO controls the replacement of contiguous blanks with a tabulation character and PO controls the generation of parity control on output characters. This must be observed when writing text lines on the line printer, where removal of blanks may reduce readability. The TO operand of the MODE command may be turned off by issuing the command:

  • M TO(0) /

and later reset to normal compression by the command:

  • M TO(1) /

Considerable amount of disk space may be saved with this feature and the various language processors will expand the tabulation characters with blanks according to the normal tabulation settings when reading source input. Normal tabulation setting — See Section 3.7.3.


Page 21

Creating a New File

A new file may be created by enclosing the file name in double quotes.

Examples

Command Description
*W DATA↵ Write the entire text buffer on the file named DATA.
*W"MYFIL",1,200↵ Create a new file with the name MYFIL:SYMB and write lines 1–200.
*W L-P.;BEGIN:,;EOF↵ Writes on the line printer the lines between the label BEGIN and the string EOF.
*W ACCUM,,,A Append the entire text buffer to the file named ACCUM.

Note:

For those who are running under stand-alone systems, see Appendix C for additional information.

3.3 Commands for Listing Text Lines

The three following commands are used for listing text-lines on the terminal:

  • The LIST Command
  • The NEXT Command
  • The PREVIOUS Command

At the end of execution for all these three commands, the last line listed becomes the current one (._ line).


Page 22

3.3.1 The LIST Command (1) & (2)

LIST COMMAND (1)

PURPOSE:

To list text-line(s) on the terminal.

FORMAT:

* L { LINE-1} {,LINE-2}
LINE-1: a line address of the first line to be listed. No operand means the current line (._ line).
LINE-2: a line address of the last line to be listed. No operand means that only one line is listed — the one at the first line address.

The line address may take any of the forms described in Section 2.

COMMENTS:

The QED program may be used to search for the occurrence of a particular character-string to be found before typing the lines on the terminal. The search will start at the next line in the text-buffer, and continue through the entire buffer, going back to the first line after the last line and continue to the current line.

If the operands are line-numbers and the second operand is located before the first, then the LIST command lists backwards through the text-buffer.

If no line is found, STRING NOT FOUND is typed.

EXAMPLES:

  • L 1, 20 list lines 1 to 20 on the terminal.
  • L/TEXT/ list the first line which contains the character-string 'TEXT'

Page 23

LIST COMMAND (2)

PURPOSE:

To list a text line within a specified search interval.

FORMAT:

* L LINE-1
a line address of the line to be listed
the line address where the search shall start
the line address where the search shall end

COMMENTS:

If no search interval limit is given, the search will be as for LIST Command (1).

NOTE:

The parenthesis ( ) are mandatory when setting up the search interval (See Section 1.1).

EXAMPLES:

*L/TEXT/(200,:STOP:). search for a line containing the character string 'TEXT' between line 200 and label STOP.

3.3.2 The NEXT Command

PURPOSE:

To list a specified number of lines.

FORMAT:

* N number
a number of lines to be listed, starting with the one after the current lines. No operand means only one line.

COMMENTS:

If the number is negative, the NEXT command works backwards through the text buffer.

EXAMPLES:

  • N 20
    list the next 20 lines in the text buffer.
  • N-10
    list the previous 10 lines in the text buffer.

Page 24

3.3.3 The PREVIOUS Command

PURPOSE:

To list a specified number of lines.

FORMAT:

*P number
a number of lines to be listed, starting one line before the current one, and working backwards through the text buffer. No operand means only one line.

COMMENTS:

If the number is negative, then the PREVIOUS command acts exactly like the NEXT command, typing lines following the current line.

EXAMPLES:

  • *P 15
    list the previous 15 lines in the text-buffer.
  • *P-5
    list the next 5 lines in the text-buffer

3.4 COMMANDS FOR ADDING, REPLACING AND DELETING TEXT LINES

The following commands work on whole lines and may expand or reduce the number of lines in the text buffer.

During the typing of a line, the user may correct errors and/or duplicate parts of lines using all features described for the EDIT command (See Section 3.5).

Each line typed is terminated by a carriage-return, and the addition or replacement of several lines must be terminated by (CTRL)L.


Page 25

3.4.1 The APPEND Command

PURPOSE:

To append new lines to the text-buffer or to move lines internally within the text-buffer.

FORMAT:

* A LINE
  • LINE: a line-address after which the new lines are place. No operand means after current line.
  • D: a D if original lines should be DELETED after moving.
  • LINE-1, LINE-2: a line-interval specified by one or two line-addresses enclosed in a pair of brackets. If D is not given, the original lines remain intact.

COMMENTS:

The command is terminated by typing CONTROL + L — key.

EXAMPLES:

    • A ↲
    • new text line - - ↲
      • new text line - - ↲
  • (CTRL) L

New lines are placed after the current line.
The command is terminated by typing CONTROL + L — key

EXAMPLES OF INTERNAL MOVE:

    • A 10, D (50, 100) ↲
      moves lines 50-100 after line 10, deleting original lines.
    • A$, 1, $) ↲
      duplicates the text-buffer by moving all lines after the last line ($), without deleting original text.

NOTE:

The parenthesis are mandatory (See Section 1.1).

ND−60.031.04


Page 26

3.4.2 THE INSERT Command

PURPOSE:

To insert new lines to the text-buffer or to move lines internally within the text-buffer. This command works like the APPEND command except that lines are placed ahead of the line specified instead of behind.

FORMAT:

| * | t LINE{ | {.D} | (LINE-1, LINE-2) } |

LINE:
a line-address where the new lines are placed ahead. No operand indicates ahead of the current line.

D:
a D if original lines should be DELETED after moving.

LINE-1; LINE-2:
a line-interval specified by one or two line-addresses enclosed in a pair of parenthesis (See Section 1.1). If D is not given the original lines remain intact.

COMMENTS:

The command is terminated by typing CONTROL + L ← key.

EXAMPLES:

  • *I 10 /
    New lines are placed ahead of line number 10.
  • - - new text line - - /
  • /CTRL/ L
    The command is terminated by typing CONTROL + L ← key.

ND—60 031.04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 27

3.4.3 The CHANGE Command

PURPOSE:

This command may be used to replace a single line with several new lines, or a group of lines with a single line and vice versa.

FORMAT:
* C LINE-1 [, LINE-2 ]
  • LINE-1: a line-address of the first (or only) line to be replaced. No operand means the current line.
  • LINE-2: a line-address of the last line to be replaced.

COMMENTS:

As for the APPEND and INSERT commands, the new lines must follow the command, each line terminated by carriage-return, and replacement is ended when typing (CTRL) L.

EXAMPLES:

  • * C 3,5
    the lines 3-5 are changed with the lines following this command.
  • * C/TEXT/,$
    change the lines from the line which contains the character string 'TEXT' to the end of the text-buffer with the lines following this command.

Page 28

3.4.4 The DELETE Command

PURPOSE:

This command may be used to delete one or several lines in the text-buffer.

FORMAT:

*D LINE-1
LINE-1 a line-address of the first (or only) line to be deleted. No operand means the current line.
LINE-2 a line-address of the last line to be deleted. No operand means that only the single line from operand 1 is deleted.

EXAMPLES:

Command Description
*D1,$ / the complete text-buffer is deleted.
*D,$ / all lines from the current to the last line are deleted.
*D / or D. / only the current line is deleted.
*D/STOP/ / deletes the first line with the character-string STOP.

ND-60 031 04


Page 29

3.5 EDITING A SINGLE LINE

This command may be used to insert, add, delete or replace characters on a single line.

The editing functions may also be invoked when typing a command-line or a new text line after the APPEND, INSERT, or CHANGE commands.

THE EDITING WORKS AS FOLLOWS:

A new line is built internally by moving characters from the line-buffer according to an edit character typed by the user.

An edit character is recognized by depressing the CONTROL-key together with an alphabetic character from the list below. For each edit character typed, one or more characters are moved from the old line to the new-line keeping track of the actual positions of both the old and new line.

A new line is terminated either by a carriage-return or one of the edit-characters itself. Some of the edit characters may request an additional character to perform its function, for example copying all up to a certain character. Several edit characters may be needed to perform the necessary modifications, until there are no more characters left or a terminator is typed.

Typing characters without depressing the CONTROL-key will simply replace the characters of the old line.


Page 30

3.5.1 The EDIT Command

PURPOSE:

This command must be used to indicate the line in the text-buffer that should be modified.

FORMAT:

Command Description
* E LINE
LINE: a line address for the line to be edited, using any of the formats described in Section 2. No operand means the current line.
L: an L if the line should be listed on the terminal before editing begins.

COMMENTS:

The line referred to is made current and listed if so requested, and the command is ready to accept edit-character for the first position.

When using label or string address, the first line that matches will be ready for editing.

The editing characters are described on the following pages.


Page 31

3.5.2 The EDIT Characters

The following list describes the various edit characters, organized in stated functions.

Some functions require an additional character; this is illustrated by a X.

Command Description
(CTRL) C copies one character at a time
(CTRL) I copies blanks to next tabulation stop (See TAB-command, Section 3.7)
(CTRL) ZX copies all characters including the specified one
(CTRL) OX copies all characters excluding the specified one
(CTRL) N copies next word, all characters to the next blank
(CTRL) U copies up to the next tabulation stop
(CTRL) H copies up to the last character of the line, awaiting more characters
(CTRL) D copies the rest of the line including the carriage return, terminating the EDIT command
(CTRL) F same as (CTRL) D but the line is not shown during the copying
(CTRL) A deletes last character typed or copied of the new line, responds a †
(CTRL) S deletes the character of the old line, responds with %
(CTRL) G deletes the next word of the old line, all the characters to the first blank, responds with %
(CTRL) W deletes the last word of the new line, all the characters to the first blank, respond with \
(CTRL) Q deletes all characters of the new line, responds with a —
(CTRL) PX deletes up to but not including the specified character responds with a % for each
(CTRL) XX deletes up to and including the specified character, responds with a % for each
(CTRL) E inserts characters from keyboard; the line is expanded with new characters until another (CTRL) E is typed to terminate insertion, responds with a < for the first and a > for the second (CTRL) E. N. B. The (CTRL) E's are not inserted in the text.
(CTRL) VX allows any edit character or control character to be accepted as normal characters
(CTRL) T types the rest of the old line and the new line so you can see how they align each other, then awaits more edit characters.

Page 32

Commands

Command Description
(CTRL) R Types the rest of the old line and the new line and awaits more edit characters
(CTRL) Y Copies the rest of the old line to the new line, and starts editing again from the first position
(CTRL) K Erase page on display.

When listing lines at the terminal, QED will mark control characters in the line by preceding them with a &-symbol.

Symbol Description
& I Means tabulating character
& M Means carriage return character
& L Means form feed character

Remember that such characters count only for one position in the line.


Page 33

3.6 REPLACING A STRING OF CHARACTERS

3.6.1 The SUBSTITUTE Command

PURPOSE:

This command allows searching through the text for a given string of characters and replacing it with another.

FORMAT:

Command Description
* S: options/new string/old string/
  • :options: One or more of the options listed below. Each option must be preceded by a colon (:).
  • new string/old string: The text of the new string and the text of the old string. Both strings must be enclosed and separated by the same delimiter characters (/ ; etc.). This character must not be contained within the strings themselves.
  • LINE-1, LINE-2: A set of line-addresses used to limit the search-interval. If LINE-1 is omitted the search is performed around the text buffer until the current line reappears, as described under Section 2.3.

COMMENTS:

The search may be performed on a single line, a group of lines or all lines, the replacement may be performed on all occurrences, a number of occurrences or only one, both the old and the new line may be listed for verification, all under user control, determined by the option operand.

STRING DELIMITING CHARACTERS

The strings must be enclosed in and separated by the same delimiting character not within the strings themselves, and must not be a colon (:).

Blanks in the strings are taken as part of the strings. The strings may be of different lengths and the new string may also be empty.


Page 34

3.6.2 Options For SUBSTITUTE

The options which may be invoked for the SUBSTITUTE commands may be the following:

Option Description
:number The number of replacements to be done. If not given, all occurrences of the old string will be replaced by the new
:W List each line as it is found, surround the old string with a pair of quotes, then wait for the user to type:
a) a S to perform replacement and continue search
b) any character except S or colon which means do not replace but continue
c) any other option with the preceding colon (except :number) followed by a) or b)
:L List the lines where replacement is done
:V The combination of :W and :L
:G Do not list any lines

If no option is specified, the :G is assumed.


Page 35

3.7 MISCELLANEOUS COMMANDS

3.7.1 Moving The Current Line Pointer

PURPOSE:

To move the current line pointer.

FORMAT:
* number
number a positive or negative number may be typed, therefore making a new line current. Positive numbers without (+) sign.

EXAMPLE:

  • * 5↓
    move current pointer five lines forward
  • * —5↓
    move current pointer five lines backwards

3.7.2 VALUE of a Specific Line

PURPOSE:

To type out the line number of a specific line without making this line current.

FORMAT:
* V,LINE
LINE: a line address.
. (point) or no operand means type line number of the current line.

EXAMPLES:

  • * V$↓
    types the line number for the last line in the text buffer.
  • * V/END/↓
    types the line number for the first line that contains the character string END.

ND–60.031 04


Page 36

3.7.3 The TABULAR Setting

PURPOSE:

This command is used to both examine the current tabulator positions and to set them to the user's choice.

FORMAT:
(1) * T
(2) * T number, n, n - - - -
(1) type out the current settings
(2) set tabulation stop at the specified positions, maximum 12 stops

COMMENTS:

The tabulator settings work in conjunction with the (CTRL) I edit character when typing, and the WRITE and READ commands for saving and retrieving text files.

NOTE:

If the text is to be started in the same columns as in the original text, note that the tabular setting must be the same when reading from the text file as it was when writing the text on the file.

The tabulator settings may be ignored in the WRITE and READ command by using the MODE command.

EXAMPLES:

* T
8,14,30,40,50,60,70,80

types the current settings

* T 7,14,30

sets tabulator stops in column 7, 14 and 30

ND--60.031.04


Page 37

3.7.4 Column Guide

PURPOSE:

This command displays a record of 72 characters, where each digit signifies its column position (modulo 10) on the line. Multiples of 10 are denoted by points.

FORMAT:

*G⏎
123456789 . 123456789 . 123456789 . 123...... (up to 72)

Page 38

3.7.5 The MODE Command

PURPOSE:

This command is used both to examine and to set various parameters which the QED-program works upon.

FORMAT:
(1) * M
(2) * M operand (value), operand (value)
(1) list the current settings of the parameters
(2) set the value to the parameter named as operand

COMMENTS:

The parameters are as follows:

  • TI (n) expands tabulation characters to blanks up to the next tabulation stop on input if n is not 0.
  • TO (n) compresses blanks to tabulation characters up to the next tabulation stop on output if n is not 0.
  • PI (n) Checks parity on input if n is not 0.
  • PO (n) Checks parity on output if n is not 0.
  • B (n) Converts input characters from terminal to lower case characters if not 0. If an upper case character is to be stored in the QED-buffer, (CTRL) B must precede the character. This modus is useful for those who have terminals with only upper case, but want to store the input to QED as lower case characters.
  • L (n) lists line numbers in front of each line listed by the LIST commands if not 0.
  • E (n) will terminate an input line on single LINE-FEED or single CARRIAGE RETURN if n is not 0. If 0, the input line is terminated on CARRIAGE RETURN - LINE FEED. May be useful if the message - TOO LONG LINE occurs. This modus has only effect if reading to an empty text buffer.

NOTE:

The parameters B and L are only available in the version QED 4.0 or later.

ND-60.031.04
Revision B

Scanned by Jonny Oddene for Sintran Data © 2012


Page 39

3.7.6 The EXIT Command

PURPOSE:

To exit from QED and return to the operating system.

FORMAT:
* EX

COMMENTS:

Remember to save your text file before you exit from QED.

ND–60 031 04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 40

3.7.7 The EXAMINE FILE-NAME Command

PURPOSE:

To display the file specified by the first READ command or the file name specified in the QED command.

FORMAT:
* X ↵

COMMENTS:

If the whole text buffer is deleted with the following command:

  • D 1, $

and a new READ command is performed, the file name displayed will be the file name in the new READ command.

EXAMPLES:

Command Description
@ QED TEST 1 Read from file TEST 1 to text buffer
14 words read
* X ↵ Display the file name
TEST 1
* W * Write the contents of the text buffer back to file TEST 1
* D 1, $ Delete the whole text buffer
* R TEST 2 Read from the file TEST 2 to the text buffer
* X ↵ Display the file name
TEST 2
* W * Write the contents of the text buffer back to file TEST 2

ND–60 031.04

Scanned by Jonny Oddene for Sintran Data © 2012


Page 41

Error Messages

While using QED, the user may encounter certain warning messages which indicate conditions that the user may not be aware of. Following is a list of these messages and a description of what they mean:

Message Description
STACK OVERFLOW
STACK UNDERFLOW
These should never happen; however if they do, then something is wrong with QED.
PARITY ERROR AT LINE n Indicates that, during a READ operation, a character with wrong parity was read at line n. The bad character is replaced with a ?.
NO MORE BUFFER SPACE No more space for the text buffer. Current operation aborted.
? A situation exists which QED thinks is impossible or which it does not know how to handle. This error happens when the user tries to use lines longer than 128 characters.
WRITE
FORGOTTEN?
This message occurs at the EX command when a modified text buffer is not saved by the W command. The file name is identical to that displayed by the X command.
INCORRECT FORMAT The given command does not have correct format.
STRING NOT FOUND The string to be searched for is not in the text buffer.

Page 42

I'm sorry, there is no text on the page to convert to Markdown.


Page 43

5 VALUE OF CURRENT LOCATION

The symbol . (point) has as its value the number of the current line. It is important that the effect of the various commands on point are precisely specified. The following is such a specification:

UPON ENTRY TO QED (.) EQUALS 0.

Command Description
APPEND . = last line appended
INSERT . = last line inserted
CHANGE . = last line entered
DELETE . = the line before the deleted line or lines
EDIT . = the line being edited unless the line becomes deleted in which case . = the line before the line being edited
LIST . = last line listed
NEXT . = last line listed
PREVIOUS . = last line listed
VALUE . = not changed
n . = . + n
READ . = last line read
WRITE . = last line written
SUBSTITUTE . = last line in which a substitution was made

Page 44

I'm sorry, but the image appears to be blank and does not contain any text to convert to Markdown. Could you provide another image or check the current one for any issues?


Page 45

APPENDIXES


NO –60 031.04


Scanned by Jonny Oddene for Sintran Data © 2012


Page 46

I'm sorry, I can't process the content from this image.


Page 47

Appendix A

QED Commands

Function Syntax
APPEND *A LINE { i, D } { (LINE-1, LINE-2) }
INSERT *I LINE{ { i, D } (LINE-1, LINE-2) }
CHANGE *C LINE-1
DELETE *D LINE-1
EDIT *E LINE
LIST L { LINE-1} {, LINE-2 }
or
L LINE-1
NEXT *N number
PREVIOUS *P number
VALUE *V
READ *R FILE {, LINE } {, (LINE-1, LINE-2) }
WRITE *W FILE {, LINE-1, LINE-2 } {, A }
SUBSTITUTE *S :options/new string/old string/
EXIT *EXIT
MODE *M operand {value}, operand {value}, . . .
TABS *T number, n, n . . .
EXAMINE *X

NOTE:

In version QED 3.9 or older, the parenthesis ( ) must be substituted with brackets [ ] except for the LIST command where angle brackets < > must be used.


Page 48

I'm sorry, there seems to be no text on the page to convert to Markdown. If you have another document or page, please upload it, and I'll be glad to help!


Page 49

APPENDIX B

EDIT CHARACTERS

Control Description
(CTRL) A Backspace one character (types ˆ).
(CTRL) C Copy one character from old line.
(CTRL) D Copy rest of old line and terminate edit.
(CTRL) E Insert string from terminal (types ‹or›).
(CTRL) F Copy rest of old line (without typing) and terminate edit.
(CTRL) G Skip next “word” (types % for each character skipped).
(CTRL) H Copy rest of old line without terminating edit.
(CTRL) I Insert spaces to next tabulation stop in new line.
(CTRL) K Erase page on display.
(CTRL) L Terminate edit at all times except after VⁿC.
(CTRL) M Terminate edit (CR).
(CTRL) N Copy next “word”.
(CTRL) Ox Copy old line up to but not including character x.
(CTRL) Px Skip characters in old line up to but not including character x (% is typed for each character skipped).
(CTRL) Q Restart the edit from the beginning (types =).
(CTRL) R Retype old line and new line fast.
(CTRL) S Skip one character in old line (types %ⁿ).
(CTRL) T Type the rest of the old line and the new line aligned, then await more edit characters.
(CTRL) U Copy up to next tabulation stop.
(CTRL) Vx Allows any edit character or control character to be accepted as normal characters.*
(CTRL) W Backspace one “word” (types ).
(CTRL) Xx Skip characters in old line up to and including the character x (% is typed for each character skipped).
(CTRL) Y Append rest of old line to new line and edit the result.
(CTRL) Zx Copy old line up to and including character x.

*When listing lines on the terminal, QED will mark control characters in the line by preceding them with a & -symbol.

NC-60.031 Q4
Revision C


Page 50

I'm sorry, I can't assist with that.


Page 51

APPENDIX C

ADDITIONAL INFORMATION FOR QED UNDER STAND ALONE SYSTEMS

1. FILE NAME/NUMBER IN READ AND WRITE COMMANDS

A device number as in NORD Standard I/O-assignment, according to the following table:

NO. DEVICE READ WRITE
0 Dummy
1 Teletype X X
2 Paper tape reader X
3 Paper tape punch X
4 Card reader X
5 Line printer X
6 Dummy
7 Teletype - 2 X X

X = default device number

In the stand alone systems you may freely interchange between file numbers and file names, i.e., "*W5 or WLINE-PRINTER are equivalent.

2. FORMAT OF READ COMMAND

*R FILE {, LINE } {, AMOUNT } {, R }

where:

  • FILE
    a file name or device number
  • LINE
    as described under the READ command
  • AMOUNT
    a number indicating how many lines or pages to be read. No operand means the entire file or until an end-of-file character (ASCII 27 octal, {CTRL} + W) is recognized. Reading a specified number of lines or pages is indicated by a L or P preceded by a positive number, i.e.:
    5 L means 5 lines
    10 P means 10 lines.
  • R
    an R to indicate that the file should be rewound before the reading starts. No operand means no rewind.

EXAMPLE:

* R 2., 100 L

Read 100 lines from unit 2 paper tape reader appending to the last line.


Page 52

I'm sorry, I can't extract any text from this page. It appears to be mostly blank.


Page 53

SEND US YOUR COMMENTS!!!

Are you frustrated because of unclear information in this manual? Do you have trouble finding things? Why don’t you join the Reader’s Club and send us a note? You will receive a membership card - and an answer to your comments.

Please let us know if you - find errors - cannot understand information - cannot find information - find needless information

Do you think we could improve the manual by rearranging the contents? You could also tell us if you like the manual!!

HELP YOURSELF BY HELPING US!!

Manual name: QED USER'S MANUAL Manual number: ND-60.031.04

What problems do you have? (use extra pages if needed)








Do you have suggestions for improving this manual?






Your name: ______ Date: ______
Company: ________ Position: ___
Address: ________

What are you using this manual for?



Send to:
Norsk Data A.S.
Documentation Department
P.O. Box 4, Lindeberg Gård
Oslo 10, Norway

Norsk Data’s answer will be found on reverse side

Scanned by Jonny Oddene for Sintran Data © 2012


Page 54

Answer from Norsk Data












Answered by _____

Date _____


Norsk Data A.S
Documentation Department
P.O. Box 25, Bogerud
0621 Oslo 6, Norway


Scanned by Jonny Oddene for Sintran Data © 2012


Page 55

I'm unable to extract the content from the scanned image you provided. If you can describe the content, I can help format it in Markdown.


Page 56

Systems that put people first

NORSK DATA A.S
OLAF HELSETS VEI 5
P.O. BOX 25
BOGERUD 0621 OSLO 6 NORWAY
TEL.: 02 - 29 54 00
TELEX: 18284 NDN

Scanned by Jonny Oddene for Sintran Data © 2012



  1. Device name as in NORD-TSS and SINTRAN III, i.e., for TAPE READER, abbreviated T-R, device number is 2. ↩

  2. Disk storage names from 1 to 16 characters, default file type :SYMB. — see NORD FILE SYSTEM and related operating system. ↩