HPlogo EDIT/3000 Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 EDIT/3000 COMMANDS

3-1. DEFINITION OF TERMS

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

Terms used in describing EDIT/3000 commands are described in the following paragraphs.

3-2. POSITION

A position describes the location in the WORK file of

  • A line.

  • A column in a line.

  • A string.

  • The WORK file pointer (EDIT/3000 monitors the edit cycle to determine where in the work file any modifications will occur). See paragraph 3-7.

3-3. RANGE

A range expression in a command informs EDIT/3000 which part of the WORK file is affected by the command. A range expression can consist of only one position or it can consist of all characters between and including two positions.

If two positions are declared as a range, the first position must sequentially precede the second position. A slash separates the two positions. A range list consists of several ranges, separated by commas. For example, 7/10,50,100/200 is a range list that includes lines 7 through 10, line 50, and lines 100 through 200. A null range in a range list is indicated by two commas. If ALL is specified as the range in a command, the range includes all text currently in the WORK file.

3-4. LINE

A line refers to a record in the WORK file. Each line has a unique number that indicates its position. A line number is of the form nnnnn.nnn. For example, 10000.001.

3-5. COLUMN

Each line of the WORK file has a predefined number of columns as defined either by the SET LENGTH command or by the EDIT/3000 subsystem default of 72 characters per line. If text is entered beyond the right margin (default : column 72), a warning message is displayed.

A column position in a range expression specifies a particular column in a line of the WORK file.

3-6. STRING

A string refers to a string of characters enclosed within a pair of special (non-alphanumeric) characters used as delimiters. Delimiters may be any of these special (non-alphanumeric) characters except apostrophes ( ' ), commas ( , ), semicolons ( ; ), periods ( . ), parentheses, and slashes ( / ). It is recommended that #, +, -, and = should not be used as string delimiters when advanced commands such as BEGIN, END, WHILE, OR, or NOT are used. A null string is represented by two consecutive delimiters, for example, "".

NOTE: Whenever a character is used as a delimiter, it is important that it does not appear in the string.

Nonprinting characters can appear outside the string, if represented by their decimal numeric equivalent (in ASCII code) and preceded by apostrophes ('). Thus the string "EDIT/3000" '13 '10 represents the characters EDIT/3000, a carriage return (13), and linefeed (10). ASCII characters and their decimal representations are shown in Appendix B.

NOTE: Blanks beyond the last non-blank character in a line are not recognized as part of a string.
Feedback to webmaster