Digital PDFs
Documents
Guest
Register
Log In
AA-D110B-TC
May 1978
56 pages
Original
1.3MB
view
download
Document:
DATATRIEVE-11 1.1 Release Notes Sep78
Order Number:
AA-D110B-TC
Revision:
0
Pages:
56
Original Filename:
AA-D110B-TC_DATATRIEVE-11_1.1_Release_Notes_Sep78.pdf
OCR Text
DATATRIEVE-11 V1.1 Release Notes Order No. AA-Oi i OB- TC First Printing, September, 1978 The information in this document is subject to change without notice and should not be construed as a commitment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may only be used or copied in accordance with the terms of such license. No responsibility is assumed for the use or reliability of software on equipment that is not supplied by DIGITAL or its affiliated companies. Copyright © 1978 Digital Equipment Corporation The postage prepaid READER'S COMMENTS form on the last page of this document requests the user's critical evaluation to assist us in preparing future documentation. The following are trademarks of Digital Equipment Corporation: DIGITAL DEC PDP DEeDS UNIBUS COMPUTER LABS COMTEX DDT DECCOMM ASSIST-II VAX DECnet DECsystem-I0 DECtape DIBOL EDUSYSTEl\1 FLIP CHIP FOCAL INDAC LAB-8 DECSYSTEM-20 RTS-8 VMS lAS MASSBUS OMNIBUS OS/8 PHA RSTS RSX TYPESET-8 TYPESET-II TMS-II ITPS-IO SBl September 1978 This document describes the differences between DATATRIEVE-11 V1.0 and DATATRIEVE-11 V1.1 DATATRIEVE-11 V1.1 Release Notes Order No. AA-011 OB-Te OPERATING SYSTEM AND VERSION: VAX/VMS RSTS/E RSX-11M lAS V1.0 V06e V3.1 V2.0 SOFTWARE VERSION: DATATRIEVE-11 V1.1 To order additional copies of this document, contact the Software Distribution Center, Digital Equipment Corporation, Maynard, Massachusetts 01754 digital equipment corporation · maynard. massachusetts First Printing, September, 1978 The information in this document is subject to change without notice and should not be construed as a commitment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may only be used or copied in accordance with the terms of such license. No responsibility is assumed for the use or reliability of software on equipment that is not supplied by DIGITAL or its affiliated companies. Copyright © 1978 Digital Equipment Corporation The postage prepaid READER'S COMMENTS form on the last page of this document requests the user's critical evaluation to assist us in preparing future documentation. The following are trademarks of Digital Equipment Corporation: DIGITAL DEC PDP DEeUS UNIBUS COMPUTER LABS COMTEX DDT DECCOMM ASSIST-1I VAX DECnet DECsystem-10 DECtape DIBOL EDUSYSTEM FLIP CHIP FOCAL INDAC LAB-8 DECSYSTEM-20 RTS-8 VMS lAS MASSBUS OMNIBUS OS/8 PHA RSTS RSX TYPESET-8 TYPESET-II TMS-11 ITPS-10 SBI Contents ---- .-/ Iopic GENERAL NOTES. . . . . . . . . . . . INSTALLATION PROCEDURE CHANGES CHANGES AND ADDITIONS. . . . . . . • Tutorial Software Added (Guide Mode) . CONTAINING Relational Operator Added Command Interruption Supported. . . . . SET/SHOW DICTIONARY Commands Added. Data Input Prompt Shortened . . . . . . . . Unquoted Literal Strings Accepted . . . . . . Command Input Prompts Now Indicate Context. Characters tolerated in Numeric Input Fields . . Special Input Sequence Leaves Field Unchanged. Relational Expression Syntax Broadened Miscellaneous Syntax Additions. . . Restrictions on Procedures Removed. REDEFINES Clause Supported. Nested Procedures Supported, , Procedure Editor Added . . . . DEFINE FILE Command Added DELETE Command Improved MODIFY VERIFY Supported. . MODIFY USING Supported . . Definition of Privileged User Changed. DEFINE RECORD Command Gives Record Length Percent Character "A,.llO\"/ed in EDIT -STP1NG Command Line Command Files Supported . . Statistical Operations Print Default Changed Underscore Character Accepted in Names. Report Writer Formatter . . . . . . . . . . . Packed Decimal Datatype Supported . . . . Context Rules Expanded for STORE USING Statement Prompts Supported for Report Writer Parameters Scope of_Prompts in Loops Fixed . . . . . . . Record Definition Length Limitation Removed. Dictionary Compression Utility Added. . . . Emulation of Floating Point Processor Added Built with RMS Runtime System on RSTS . Maximum Keys per Index Files Controllable. RESTRICTIONS AND LIMITATIONS. . . . . . • 10-", Section 1.0 2.0 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3,14 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 3.26 3.27 3.28 3.29 3.30 3.31 3.32 3.33 3.34 3.35 4.0 APPENDIX A DATATRIEVE PROCEDURE EDITOR EDITOR SUMMARY . . . . . . . Summary of EDIT Commands Summary of EDIT Ranges .A.I . A.I .A.I.I .A.I.2 EDITOR COMMANDS .A.2 DELETE EXIT .'. INSERT. QUIT .. REPLACE. SUBSTITUTE. TYPE . . . . . .A.2.1 .A.2.2 .A.2.3 .A.2.4 .A.2.5 .A.2.6 .A.2.7 RANGE SPECIFICATIONS . Period . . %BEGIN . . . . . . . . %END . . . . . . . . . . The Next Occurrence of a String %WHOLE. %REST . . %BEFORE. %ALL. %FOR . . . %AND .. . A Fixed Offset from a Given Line . tv . A.3 .A.3.1 .A.3.2 .A.3.3 .A.3A .A.3.5 .A.3.6 .A.3.7 .A.3.8 .A.3.9 .A.3.10 .A.3.11 Datatrieve Version V1.1 Release Notes General Notes 1.0 General notes Datatrieve Version 1.1 is strictly upwards compatible from Version 1.0. The dictionary format has not changed; all domains, records, procedures, and command files used for Version 1.0 may be used without modification on Version 1.1. NOTE • Although the maintenance release of Datatrieve-11 is designated as Version 1.1, the corresponding version of the software is V01.10. The latter designation appears in the start-up banner of Datatrieve . 2.0 Installation Procedure Changes Datatrieve Version 1 1 is built a fixed central dictionary and. messages file. This has two direct effects on the installation procedure: I. I 1. The installation automated. procedure 2. Installation must be performed account. is now from completely aJ privileged Both the dictionary and the message file are installed in LB:[1,2J for all operating systems but RSTS where they reside on SY:[1,2J. See the Datatrieve-ll Installation Guide installation procedures . .. for the specific Datatrieve Version V1.1 Release Notes Changes and Additions 3.0 PAGE 2 Cnanges and Additions The following changes and additions have been made to the Datatrieve Version 1.1 software and are not documented in the Datatrieve-11 User's Guide. 3.1 Tutorial Software Added (Guide Mode) A CRT based tutorial has been added to Datatrieve Version 1.1. The tutorial feature can be used only by VT100, VT52, and VT52 compatible terminals. A tutorial session is entered by the Datatrieve command: SET GUIDE The software is self documenting. Typing SET GUIDE from an unsupported terminal prompt: produces the ENTER TERMINAL TYPE: Although you must enter a character, all responses result in the message: Terminal not supported for guide mode. 3.2 CONTAINING Relational Operator Added The substring search relational operator CONTAINING has been added. CONTAINING is used in a record selection expression to retrieve records with a field containing a particular substring. The substring may be anywhere in the field, and need not match the case (upper/lower case) of the search string. For example, the command: FIND BOOKS WITH TITLE CONTAINING "LASER" finds all records in BOOKS with the word in the field TITLE. 3.3 "laser" somewhere Command Interruption Supported A command may be interrupted on the RSTS/E , RSX-11M and VAX/VMS operating systems by typing AC. After recognition of the AC, Datatrieve returns to the DTR) command level. This feature is not available on IAS. j Datatrieve Version V1.1 Release Notes Changes and Additions PAGE 3 Care should be exercised to avoid typing a second AC Datatrieve has returned to its command level. before 3.4 SET/SHOW DICTIONARY Commands added The data dictionary may be changed Version 1.1 session with the command: • during a Datatrieve SET DICTIONARY file-spec where "file-spec" is the file specification of a data dictionary. If the file does not exist, cannot be accessed, or is not a valid dictionary, the former dictionary assignment remains in effect. To return to the default system dictionary, type the command: SET DICTIONARY To display the current dictionary, type: SHOW DICTIONARY Since Datatrieve 1.1 is built with a central dictionary, SET DICTIONARY is the prefered way to access a private dictionary. A private dictionary may be created by copying the system dictionary with PIP, COPY, or the QCPRS utility program, or by the following RMS define utility command: DFN PRIVAT.DIC IFO:IDX IRF:FIX:512 IAL:100 IBK:2IKY:30:2:(/OP:DUP) IKY:O:31:(/OP:NODUP) 3.5 Data Input Prompt Shortened The prompt message has been changed from: Please supply value for PROMPT-NAME: to: Enter PROMPT-NAME: 3.6 Unquoted Literal Strings Accepted An undefined name on the right hand side of expression is assumed to be a literal Datatrieve statement: a relational str ing . The Datatrieve Version V1.1 Release Notes Changes and Additions PAGE 4 PRINT YACHTS WITH BUILDER EQ PEARSON would be rejected as an error (Unknown field name "PEARSON") in version 1.0 of Datatrieve. In Version 1.1, Datatrieve issues the warning message: "PEARSON" is not field, assumed literal and executes the command as if it had been entered: PRINT YACHTS WITH BUILDER EQ "PEARSON" Datatrieve does not interpret an unquoted string as a literal if the string is known as a keyword, a domain name, Nor does Datatrieve a collection name, or a record name. treat an unquoted string as a literal if it is on the left side of a relational expression. Datatrieve automatically converts unquoted literal to upper case. 3.7 Command Input Prompts Now Indicate Context The input prompt changes depending on the context Datatrieve. The following prompts are used: within Prompt Meaning DTR> Datatrieve is waiting for a command DFN> A dictionary element is being defined RW> The report writer is waiting for a command QED> The editor is waiting for a command IN> The Datatrieve editor is in input mode 3.8 Characters tolerated in Numeric Input Fields The charcters percent (%), comma (,), and dollars ($) are tolerated if entered in response to an input prompt for a numeric field. The characters are ignored. In Version 1.0 of Datatrieve, the presence of any of these characters would have forced a warning message. PAGE 5 Datatrieve Version Vl.1 Release Notes Changes and Additions --" 3.9 Special Input Sequence Leaves Field Unchanged The input sequence <tab><carriage-return>, when given in response to a prompt for a STORE, MODIFY, or assignment statement causes the field to remain unchanged. 3.10 • Relational Expression Syntax Broadened Relational expressions of the form: field-name NOT relation value are nOvl accepted by Datatrieve where "field-name" is a field n arne, "reI ation" is a reI at ional ODe rator (E Q, NE, BETWEEN, etc.), and "value" is a value expression. The effect is identical to the construct: NOT field-name relation value In other words, the following statement is now legal: FIND YACHTS WITH LOA NOT BETWEEN 30 AND 40 3.11 Miscellaneous Syntax Additions The keyword "BUT" has been added This allows commands such as: as a synonym of "AND". PRINT YACHTS WITH PRICE<20000 BUT LOA>30 The keyword "AND" may be used in place of or in conjunction with a comma when separating print objects in a print list. Hence the following commands are valid: PRINT TYPE, RIG, AND PRICE OF YACHTS PRINT RIG AND PRICE 3.12 Restrictions on Procedures Removed Most restrictions on the types of commands which may be placed in procedures have been lifted. In the maintenence release, any command except DEFINE may be included in a procedure. This specifically includes READY and SHOW. Datatrieve Version V1.1 Release Notes Changes and Additions 3.13 PAGE 6 REDEFINES Clause Supported The COBOL record definition clause REDEFINES is supported. The following is an example of the REDEFINES clause: 03 DATES. PIC X(6) EDIT-STRING IS XX/XX/XX. 05 DATE 05 SEP-DATE REDEFINES DATE. 07 MONTH PIC 99. 07 DAY PIC 99. 07 YEAR PIC 99. The field SEP-DATE redefines the field DATE in that it provides an alternate description of the same data. Specifically, the field MONTH is the first two bytes of the field DATE, the field DAY is the third and fourth bytes of DATE, and the field YEAR is the last two bytes of DATE. This allows you to enter separate values for the month, day, and year field, to sort the file based on the natural order of dates, yet print the date with a standard default format. The redefining field must be contained in the same group as the original field, must have the same level number, and must be exactly the same length as the original field. Redefinitions are ignored in PRINT and MODIFY lists unless referenced explicitly. 3.14 Nested Procedures Supported procedures Procedures may contain references to other (nested procedures) provided that no procedure invokes itself either directly or indirectly. The maximum depth of procedure nesting ~aries from about 10 to about 30 depending on the amount of memory available, number and size of established collections, etc. 3.15 Procedure Editor Added A Datatrieve procedure editor has been added. invoked by the command: The editor is EDIT procedure-name where Hprocedure-name" is the name of an existing procedure. The editor is a small subset of EDT, the DEC Standard Editor. See Appendix A for the editor specification. PAGE 7 Datatrieve Version V1.1 Release Notes Changes and Additions 3.1b DEFINE FILE Command Added A command to create the RMS file for added. The syntax of the command is: a domain has been DEFINE FILE FOR domain [option-1] [, option-2 ... ] where "domain" is a domain name. of the following: , Each "option" must be one ALLOCATION=blocks SUPERCEDE KEY=field [(key-modifiers ... )] where "blocks" is the number of disk blocks to be allocated for the file, "field" is the name of a field in the domain to be used as a key, and "key-modifiers" are one or two modifiers from the list: CHANGE NO CHANGE DUP NO DUP If two key modifiers are given, they must commas. be separated by Any number of keys may be specified (up to a maximum of 254); if no keys are specified a sequential file is created. To define a file, the following conditions must be met: • 1. The domain must be defined in the diJctionary. 2. The record referenced in the domain definition must be defined in the dictionary . 3. The user must have control access to the domain. An indexed file is created if at least one KEY is specified; if no keys are specified, the file created is sequential. If more -than one key is specified, the first is the primary key, the second the first alternate key, etc. The default options for the primary key are (NO CHANGE, NO DUP). For alternate keys the d€faults options are (CHANGE, DUP). 11.,- For all files, the record format is fixed length with the Datatrieve Version V1. 1 Release Notes Changes and Additions PAGE 8 length determined by the record definition. The device, UIC or PPN, file name, extention, and version number are taken from the domain definition. Examples: DEFINE FILE FOR YACHTS KEY=BUILDER(NO CHANGE, DUP), KEY=MODEL, ALLOCATION=30, SUPERCEDE DEFINE FILE FOR YACHTS In the first example, an indexed file with two keys is created. The first key corresponds to the field BUILDER in the record definition (YACHT) associated with the domain YACHTS, and has the NO CHANGE, DUP attributes. Duplicate values are allowed for the BUILDER field, but once stored, that field may not be mOdified. If NO DUP were specified, any attempt to store a second record with the same builder would be rejected. The second key corresponds to the field MODEL, may be modified, and may have duplicates. On RSTS/E, the option SUPERCEDE indicates that the old version of the file specified in the domain definition (YACHT.DAT) should be deleted and replaced with the new version. Without the SUPERCEDE option DEFINE FILE will not create a new file on RSTS if a file of the same name exists in the designated directory. On RSX-11M, lAS, and VAX/VMS, DEFINE FILE creates a new version of the file unless the version number is explicit in the domain definition. In that case, SUPERCEDE can be used to create another file with the same extention, and delete the old one. In the second example, a sequential file is created. It too uses the record description YACHT to determine the record length, and the domain definition of YACHTS to find the file name. is lost. If an error is found, correct it immediately, or cancel the edit with the editor QUIT command. 3.17 DELETE Command Improved An unsuccessful DELETE command no longer kills command files. A command file containing a record definition may conveniently contain a command to delete the previous definition. Datatrieve Version V1.1 Release Notes Changes and Additions 3.18 PAGE 9 MODIFY VERIFY Supported The VERIFY USING clause is now supported on the MODIFY command. It works the same way as does the VERIFY clause on the STORE command. 3.19 MODIFY USING Supported The USING clause on the MODIFY Datatrieve version 1.1. The MODIFY is: MODIFY [ALL] command is recognized in syntax of the USING form of USING stmt-1 [VERIFY USING stmt-2] [of rse] where stmt-1 is a single Datatrieve statement (simple compound) containing at least one assignment statement. 3.20 or Definition of Privileged User Changed A login project code of one is now required to get automatic, de facto control access to dictionary elements. In Version 1.0 of Datatrieve, any login project code less than eight was sufficient$ 3.21 DEFINE RECORD Command Gives Record Length The DEFINE RECORD command, when successful, issues a message containing the length in bytes of the record defined. 3.22 Percent Character Allowed in EDIT-STRING The special symbol % is allowed in EDIT-STRING. It is treated as a literal character. For example, the command: PRINT 15 USING 99% • prints as: 15% Datatrieve Version V1. 1 Release Notes Changes and Additions 3.23 PAGE 10 Command Line Command Files Supported If Datatrieve is installed (on RSX-11M or lAS) or invoked via a CCL (on RSTS), any data on the invocation line is accepted by Datatrieve as the sole input, i.e. Datatrieve executes the line (or command file) and exits immediately. For example, if Datatrieve were installed (INS command on RSX-11M and lAS, a CCL on RSTS/E), the acceptance test could be run by the operating system command: DT R @DTR. TST 3.24 Statistical Operators Print Default Changed When used in a print list, MAX, MIN, and AVERAGE of a single field acquire the same default column header and edit string as the field itself. 3.25 Underscore Character Accepted in Names The underscore character ( ) names provided that it is character. 3.26 is permitted in Datatrieve neither the first nor last Report Writer Formatter An initial literal (or skip followed by a literal) in a print list is now aligned with the first column of data. to the first logical columns ,group. See the procedure LOA-REPORT in the Version i . i acceptance test for an example. 3.27 Packed Decimal Datatype Supported The packed decimal datatype is supported. A number is represented in packed decimal as a sequence of 4 bit nibbles, stored two nibbles per byte. The low order byte (high address) of a packed decimal field contains only one digit nibble, plus a sign nibble. The sign nibble must contain either one of the positive sign codes (10, 12, 14, 15, decimal) or one of negative sign codes (ii or 13 decimal). A packed decimal field is indicated in the record definition by a USAGE of COMP-3. For example, the field definition PAGE 11 Datatrieve Version V1.1 Release Notes Changes and Additions 05 NUMBER-aN-HAND PIC S9(5) USAGE COMP-3 defines a packed decimal field 3 bytes long. The packed decimal datatype used by Datatrieve is compatible with the packed decimal used by VAX-11 hardware, the RPG-II language, and IBM hardware. 3.28 Context rules expanded for STORE USING statement The recognition rules for names occurring on the right hand side of assignment statements have been modified. Now, references to data in fields in the record can be stored. Two conditions must be met: 1. A context variable must be present USING statement. The syntax is on the STORE STORE context IN domain USING statement where "domain" is the domain into which the new record is to be stored, "context" is the context v ar iab Ie, and "statemen ttl is a Da tatrieve statement. 2. Any reference to a field in the record being stored must be explicitly qualified by the context variable. Examples: STORE NEW IN REVENUES USING BEGIN Q1=*.Q1 FIRST QUARTER Q2=*.Q2 SECOND QUARTED Q3=*.Q3 THIRD QUARTER Q4=*.Q4 LAST QUARTER YEAR-TOTAL = NEW.Q1 + NEW.Q2 + NEW.Q3 +NEW.Q4 END • Datatrieve Version V1.1 Release Notes Changes and Additions PAGE 12 STORE SAIL IN YACHTS USING BEGIN LOA=*.LOA IF SAIL. LOA NOT BETWEEN 20 AND 45 THEN PRINT "BAD LENGTH-OVER-ALL, RE-ENTER" THEN LOA=*.LOA-AGAIN END 3.29 Prompts Supported for Report Writer Parameters If a REPORT-NAME is not included in a report specification, Datatrieve Version 1.1 prompts for one. The report name entered must conform to the same rules as SET REPORT-NAME. It can not be longer than the input line, although it can include slash characters so that it will print on more than one line. The report writer also supports LINES-PAGE and SET COLUMNS-PAGE. 3.30 *.prompts for both SET Scope of prompts in loops fixed In version 1.0 the command: REPEAT 5 PRINT YACHTS WITH BUILDER EQ *.BUILDER prompts once for BUILDER, then prints the same list of YACHTS five times. In Version 1.1 of Datatrieve,that statement prompts five times, print a list each time. 3.31 Record Definition Length Limitation Removed The Version dictionary 1.0 limitation on the maximum length of elements (record definitions) has been e~lmlnated. There is no practical bound on the length of a record or procedure definition. 3.32 Dictionary Compression Utility Added A data dictionary file compression utility (QCPRS) has been provided. See the Datatrieve Installation Guide for specifications. Datatrieve Version V1.1 Release Notes Changes and Additions 3.33 • PAGE 13 Emulation of Floating Point Processor Added A floating point processor is no longer necessary to process the floating point datatypes COMP-1 and COMP-2. If a floating point processor is present, Datatrieve automatically uses it. If a floating point processor is not present, Datatrieve emulates the floating instructions . 3.34 Built with RMS Runtime System on RSTS Datatrieve Version 1.1 on RSTS/E is built with the RMS runtime system to improve performance and increase the maximum task extension quantity_ 3.35 Maximum Keys per Index Files Controllable Datatrieve Version 1.0 could READY indexed files with a maximum or 10 keys. In Datatrieve Version 1.1, the maximum number of keys can be controlled with the global symbol MAXKEY in the task build command file (DTR11M.TKB, DTRIAS.LNK, DTRVAX.TKB, or DTRSTS.TKB). To increase the maximum number of keys accessable by Datatrieve, edit the appropriate task build file to increase the value assigned to MAXKEY, and rebuild Datatrieve . • Datatrieve Version V1. 1 Release Notes Restrictions and Limitations 4.0 Restrictions and Limitations 4.1 Collection Sizes PAGE 14 The maximum size of an established collection (resulting from execution of a FIND statement) is about 5,000 records. To circumvent this limitation, use RSE forms of the various Datatrieve statements. This also improves performance. 4.2 Dictionary Access on VAX/VMS VAX/VMS does not support record locking in compatibility mode. To avoid problems associated with a shared data dictionary, Datatrieve opens the dictionary only when required. Occasionally, however, the dictionary may not be available when required. When this happens, Datatrieve waits five seconds, and attempts to re-access the dictionary; if necessary, it repeats this three times. If, at the end of 15 seconds, the dictionary is still not accessable, the operation is cleanly aborted leaving the dictionary unchanged. 4.3 Computing Ratios of Statistical Expressions When it is necessary to compute the ratio of two statistical expressions, enclose each in parentheses to avoid ambiguity. For example, avoid expressions like TOTAL PRICE / TOTAL COST using instead the expression (TOTAL PRICE) / (TOTAL COST) 4.4 Arithmetic Limitations In general Datatrieve is capable of arithmetic operations of up to 18 decimal digits. The multiplication and division operations (including TOTAL), however, are limited to operands and results with an absolute value less than 2**31 (about nine decimal digits). Floating point calculations (expressions containing a field defined with a USAGE of COMP-1 or COMP-2) are limited by the Datatrieve Version V1.1 Release Notes Restrictions and Limitations PAGE 15 accuracy of the data type used. 4.5 GUIDE, High Baud Rates, and RSX-11M When GUIDE mode is set, Datatrieve interrogates the user's terminal to determine its type. On RSX-11M, particularly with a VT100 transmitting above 1200 baud, the terminal may respond faster than Datatrieve can react. If this happens, one of the messages: Terminal not support for GUIDE mode Enter terminal type: will result. To overcome this problem, one of two solutions may be used: 1. If split baud rates are available, set the terminal to transmit at 150 or 300 baud. 2. Hard code the terminal type in the Datatrieve task build command file (DTR11M.TKB) and rebuild Datatrieve. The terminal type is controlled by the global TRMTYP. A value of 0 indicates that the terminal is to be determined; a value of 1 indicates a VT52; a VT100 is indicated by a value of 2. APPENDIX A Datatrieve Procedure Editor The command EDIT procedure-name invokes an editor which can insert, replace, or delete text from procedures defined in the Data Dictionary. The new version of the procedure replaces the old; if you realize during an edit that you have made a serious error, leave the editor with the command QUIT which kills the edit and restores the old version of the procedure. A.1 Editor Summary Purpose This command invokes a subset of the DEC Standard Editor (EDT), op~ns the selected procedure to the editor, and changes the prompt from DTR> to QED>. When you have finished ~diting the procedure issuing an EXIT command or AZ replaces the old version with th~ new, and return you to Datatrieve. Format EDIT procedure-name [(password)] Datatrieve Procedure Editor Overview A.1.1 PAGE A-2 Summary of EDIT commands All of the editor commands follow the general syntax: command [range-specification] where "command" is "range-spe~ification" one of the editor commands, is a range specification. and The commands are: T (YPE) TYPE displays lines. Used alone it displays the next line. When followed by a "." it displays the current line. <cr> <cr> is an acceptable abbreviation for TYPE. Thus entering a carriage return without a command before it displays (and advances the cursor to) the next line. D(ELETE) DELETE deletes the line range specification. S(UBSTITUTE) SUBSTITUTE searches for a string of characters and substitutes a second string of characters for them. R(EPLACE) REPLACE deletes the line described by the range specification and enters INSERT mode to accept a replacement ·which can be longer or shorter than the original. I(NSERT) INSERT changes the editor from command mode to insert mode, changing the prompt from QED> to IN>. All input is inserted into the procedure until a ~Z is entered, when the editor returns to command mode. EXeIT) EXIT is the normal way of leaving the editor. It replaces the old version of the procedure with one just created. QUIT QUIT is an abnormal ending to an edit. The new version of the procedure is deleted, and the old version is restored. Use it when your edit has gone awry. QUIT can not be abbreviated. described by the PAGE A-3 Datatrieve Procedure Editor Overview A.1.2 Summary of EDIT ranges Single range specifications place the editor beginning of the line specified. They are: • at the " " A period specifies the current line. It is the default range for all the commands except TYPE. %BE(GIN) The first line of the procedure . %E (N D) The end of the procedure. 'string' or "string" The next line containing the string. %WH(OLE) The whole procedure. %R(EST) The rest of the current line). %BEF(ORE) All the lines between current, inclusive. procedure the (including the first the and %ALL 'string' or %ALL "string" Every line containing the string. Range specifications can be connected. The position of the editor after using combined range specifications is not easily predictable. The connectors are: %FOR or Lines from range-1 through range-1 plus n. %AND 0 r , The line described by range-1, and described by range-2, etc. the + The line n lines after the line described range-1. line by PAGE A-4 Datatrieve Procedure Editor Editor Commands A.2 Editor Commands A.2.1 Delete one or more lines -- DELETE Purpose The DELETE command is used to delete more lines from a procedure. one or be a Format DELETE [range-1] D [range-1] 1. If you specify range-1, it valid range specification must Requirements None. Prompts & Responses None. Effects 1. If you supply a range specification, the line or lines identified by range-1 are deleted from the procedure. 2. If you do not supply a range specification, the current line is deleted from the procedure. 3. The editor is now positioned at the following the last line deleted. line Examples DELETE DELETE %ALL "BOTTOM OF" Hints Remember that DELETE deletes complete lines. Datatrieve Procedure Editor Ed i tor Commands PAGE A-5 The second example above deletes all the lines containing the string "BOTTOM OF", not just the characters "BOTTOM OF" . • #I PAGE A-6 Datatrieve Procedure Editor Editor Commands A.2.2 Exit from the Editor -- EXIT Purpose The EXIT command terminates the editor, stores the updated procedure in the data dictionary, and returns control to Datatrieve. Format EXIT EX "z Requirements The updated procedure must not be empty. Prompts & Responses Datatrieve returns with the DTR> prompt. Effects 1. The editor is terminated. 2. The edited procedure is written back to the data dictionary in place of its original definition. 3. Control is returned to Datatrieve. 4. The old definition of deleted. the procedure is Example EXIT Hints Before exiting the editor, it IS good practice to print the entire procedure to verify that the intended modifications were made correctly. Once the editor is exited, the old procedure definition is lost. If an error is found, correct it immediately: or cancel the edit with the editor QUIT command. PAGE A-7 Datatrieve Procedure Editor Editor Commands A.2.3 Insert one or more lines -- INSERT Purpose Tne insert command allow new inserted into a procedure. lines tv be must be a when in Format INSERT [range-1] I [range-1] • 1. If you specify range-1, it val id range specification Rpt111; rpmpnt.~ '--"1--- --'--"~- None. Prompts & Responses The prompt changes from QED> to IN> insert mode. Effects .. 1. The ed i tor enter insert mode. Subsequent lines typed are inserted in the procedure. Insert mode is terminated by typing a (control-Z>. 2. If you do not supply a range specification, the new lines are inserted ahead of the current line. 3. If you supply a range specification, the new lines are inserted ahead of the first line indicated by the range specification. Examples I INSERT %BEGIN Hints To insert lines aftet the bottom following procedure may be used: line, the PAGE A-8 Uatatrieve Procedure Editor Editor Commands 1. Position the editor at the end of the procedure by typing the command %END (an implicit TYPE command). 2. Type the INSERT insert mode. command to enter Datatrieve Procedure Editor Editor Commands A.2.4 PAGE A-9 Abandon the Editor -- QUIT Purpose The QUIT command is used to abort an edit and return to Datatrieve without alter the procedure being edited. Format QUIT • Requirements None. Prompts & Responses None. Effects 1. The editor is terminated. 2. No modifications made. 3. Control is returned to Datatrieve. to the procedure are Examples QUIT Hints • QUIT undoes any damage you may inadvertently done to your procedure . when you're behind. have QUIT PAGE A-10 Datatrieve Procedure Editor Editor Commands A.2.5 Replace One or More Lines -- REPLACE Purpose This command may be used to replace one or more complete lines with completely new lines. Format REPLACE [range-1] R [range-1] 1. If you specify range-1, it valid range specification must be a The prompt changes from QED> to IN> insert'mode. when in 1. If you specified a range, the lines identified are deleted procedure. line or from the 2. If you do not specify a range, current line is deleted from procedure. 3. The editor enters insert mode. Subsequent lines typed are inserted in the procedure. Insert mode is terminated by typing a <control-Z>. 4. The editor is now positioned at the line following the last line deleted (after the last line inserted). Requirements None. Prompts & Re sponses Effects Examples REPLACE R %WHOLE the the Datatrieve Procedure Editor Editor Commands PAGE A-11 Hints Do not confuse REPLACE with SUBSTITUTE. The former replaces lines, the latter substitutes strings . • • Datatrieve Procedure Editor Editor Commands A.2.b PAGE A-12 Substitute One Character String for Another -- Substitute Purpose This command substitutes one character string for another. It may substitute only the first occurrence, or all occurrences of a string. Format SUBSTITUTE Istring-1/string-21 [range-1] S Istring-1/string-21 [range-1] 1. If you specify range-1, it valid range specification must be a 2. The del imi ting character n I" may replaced with any printing character. be Requirements None. Prompts & Responses All lines in which substitutions are typed. take place Effects 1. If you supply a range specification, all occurrence of string-1 in all lines identified by range-1 are replaced with string-2. Any lines identified by range-1 which do not contain string-1 are not modified. 2. If you do not supply a range specification, only the first occurrence of string-1 is replaced with string-2. If string-1 is not found between the current line and the end of the procedure, no substitution is performed. Examples SUBSTITUTE IPRINT/PRINPI S *PRICE/LOB*PRICE/LOA* Datatrieve Procedure Editor Editor Commands PAGE A-13 S /FOOPAR/FOOBARI %WHOLE Hints Substitution of one string for another is probably the easiest strategy to follow when making minor modifications to a procedure . .. PAGE A-14 Datatrieve Procedure Editor Editor Commands A.2.7 Display One or More Lines -- TYPE Purpose The TYPE command is used to print one or more lines in a procedure. Format TYPE [range-1] T [range-1] [range-1] 1. If you specify range-1, it valid range specification must be a Requirements None. Prompts & Responses The appropriate lines are displayed terminal. on your Effects 1. If you supply a range specification, the lines identified by range-1 are displayed on your terminal. Following completion of the command the editor is now positioned at the first line displayed. 2. If you do not supply a range specification, the editor automatically advances to the line following the current line, and displays that line. A TYPE command without a range specification is equivalent to the command TYPE . + 1 Examples TYPE T %WHOLE Datatrieve Procedure Editor Editor Commands PAGE A-15 T . Hints Note that the TYPE command does not require either "Tn or "TYPE" to be included in the command. A range specification alone is interpreted as a TYPE command. A blank line, in turn, is considered an implicit TYPE command without a range specification. For this reason, simple carriage-returns may be used to scroll thru a procedure. For short procedures, this is an excellent mechanism for locating a particular line . • Datatrieve Procedure Editor Range Specifications A.3 PAGE A-1b Range Specifications A.3.1 The Current Line -- . (period) Purpose This range specification indicates that the editor command is to act on the current line. Format 1• A period. Requirements None. Prompts & Responses None. Effects 1. The command acts on the current line. 2. If you entered a period without command, the current line is typed. a TYPE . S/ORIGINAL STRING/REPLACEMENT STRING/ . Hints A Type command with a range of <period> types the current line without advancing to the next line. A Substitute command with a range of <period> replaces all occurrences of the original string on the current line with the replacement string. Without any range, the same substitute command would replace only the first occurrence of the original string Datatrieve Procedure Editor Range Specifications on the line . • • PAGE A-17 Datatrieve Procedure Editor Range Specifications A.3.2 PAGE A-18 The First Line of a Procedure -- %BEGIN Purpose This range specification indicates that the editor command is to act on the first line of the procedure. Format %BEGIN %BE -Requirements None. Prompts & Responses None. Effects 1. The command containing the SBEGIN acts on the first line of the procedure. 2. If you entered %BEGIN without an explicit command, the first line of the procedure is typed. Examples TYPE %BEGIN DELETE %BEGIN Hints %BEGIN typed without a command (equivalent to TYPE %BEGIN) is a convenient way to get to the first line of the procedure. Datatrieve Procedure Editor Range Specifications A.3.3 PAGE A-19 The last line of the procedure -- %END Purpose The %END range specifies that the editor is to apply the command to the last line of the procedure. Format %END %E Requirements None. Prompts & Responses None. Effects 1. The command acts on the last line of procedure. the 2. If you entered a period without command, the last line is typed. a Example INSERT %END Hints The command INSERT %END is the best way to add new last line of a procedure. lines after the PAGE A-20 Datatrieve Procedure Editor Range Specifications A.3.4 The Next Occurrence of a String Purpose This range specification indicates that the editor command is to be applied to the next line containing a given string. Format "string-1" 'string-1' 1. The string may be enclosed single or double quotes. in either Requirements When the string is not found between the current line and the end of the procedure, the command has no effect. Prompts & Responses A messages is printed if the found. string is not Effects 1. The command containing the range specification acts on the next line containing the string-1. 2. If the string-1 is not found, the command is aborted. If this happens, the result is just as if the command were not typed. 3. The search for string-1 is case insensitive. An upper case letter matches is lower case equivalent and vice versa. Examples TYPE "AT BOTTOM" DELETE 'PRINX YACHTSi Hint Datatrieve Procedure Editor Range Specifications PAGE A-21 A quoted string without an explicit command is a dandy way to locate and print a particular line. PAGE A-22 Datatrieve Pl'ocedure Editor Range Specifications A.3.5 The whole procedure -- %WHOLE Purpose The range %WHOLE specifies that the command is apply to all lines of the procedure. Format %WHOLE %WH Requirements None. Prompts & Responses None. Effects 1. The command acts procedure. on all lines 2. If you entered %WHOLE without a the.entire procedure is typed. in the command, Ex amples %WHOLE S/PLATAPUS/PLATYPUS/ %WHOLE Hints If you become seriously lost during an type edit, %WHOLE to determine the extent of the damage and position the editor on the first line of the procedure. And, if worse comes to worse, the command REPLACE %WHOLE is a good way to start over (though you might consider QUIT). Datatrieve Procedure Editor Range Specifications PAGE A-23 A substitution command with the range %WHOLE changes all occurrences of the original string in the procedure to the replacement string. Datatrieve Procedure Editor Range Specifications A.3.b PAGE A-24 The Rest of the Procedure -- %REST Purpose This range specification indicates that the editor command is to act on all lines from the current to the last line of the procedure. Format %REST %R Requirements None. Prompts & Responses None. Effects 1. The command acts on the current remaining lines of the procedure. 2. If %REST is entered without an explicit command, the rest of the lines are typed. Examples D %REST %REST and Datatrieve Procedure Editor Range Specifications A.3.7 PAGE A-25 The preceding lines -- %BEFORE Purpose The %BEFORE range specification applies the editor command to all lines from the first to the current line . • Format %BEFORE %BEF Requirements None. Prompts & Responses None. Effects 1. The command acts on all lines from the top of the procedure to and including the current line. 2. If %BEFORE is entered without an explicit command, the first through the current lines are typed. The editor, however, is positioned to the first line of the procedure after the command. Examples S/PRINT ALL/PRINT/ %BEFORE Hints Since almost any use of %BEFORE causes the editor to be positioned to the first line of the procedure, %BEFORE is of limited use. PAGE A-2b Datatrieve Procedure Editor Range Specifications A.3.8 All Lines Containing a Particular String -- %ALL Purpose The range %ALL is used to apply an editor command to all lines containing a particular string. Format %ALL "string-1" %ALL 'string-1' 1. The string may be enclosed single or double quotes. in either Requirements None. Prompts & Responses No indication is given if string-1 was found. no occurrence of Effects 1. The command contain the %ALL range ~cts on all lines containing the string-1. 2. If the range is given without an explicit command, all lines containing the given string are typed. . 3. The search IS case insensitive. Examples TYPE %ALL "EDIT-STRING" DELETE %ALL 'PRINT It, Hints The range %ALL can occurrences of a procedure. be used to print all particular field in a Datatrieve Procedure Editor Range Specifications A.3.9 PAGE A-27 Repeat for a Number of Consecutive Lines -- %FOR Pur pose This range specification allows a command to be applied to a number of consecutive lines. Format r ange-1 %FOR n range-1 n 1. Range-1 must be one of the range specifications: (period), %BEGIN, quoted or double quoted string. 2. N must be an unsigned, non-zero number. Requirements None. Prompts & Responses None. Effects • 1• The command is applied to n lines beginning with the line identified by range-1. 2. If the range is entered without an explicit command, the n lines are typed . Examples T %BEGIN 5 DELETE. %FOR 3 Datatrieve Procedure Editor Range Specifications A.3.10 PAGE A-28 Multiple Range Specification -- SAND Purpose This range form allows two or more simple range specifications to be given for a single command. Format range-1 %AND range-2 ... range-1 , range-2 ... 1. Range-1, range-2, etc. must be taken from the following list of range specifications: (period), SBEGIN, SEND, quoted or double quoted string. Requirements None. Prompts & Responses None. Effects 1. The command is appl ied to the line identified by range-I, then to the line identified by range-2, etc. 2. Following execution of the command, the editor is positioned at the line identified by range-I, unless that line was deleted. In that case the editor is positioned where the line used to be. 3. If the range is entered without an explicit command, the lines indicated by the various ranges are typed. The editor is now positioned at the line identified by range-1. Examples TYPE %BEGIN, %END TYPE %BEGIN 1 "FOO" Datatrieve Procedure Editor Range Specifications PAGE A-29 The command: %BEGIN, "FOO" can be used to type the line containing first occurrence of the string "FOD". editor, however, is now positioned at first line of the procedure . . the The the Datatrieve Procedure Editor Range Specifications A.3.11 PAGE A-3D A Fixed Offset from a Given Line -- + Purpose This range specification indicates that the editor command is to be applied to a line a fixed number of lines from a given line. Format range-1 + n 1. Range-1 must be a range specification take from the list. (period), %BEGIN, and quoted or double quoted string. 2. N must be an unsigned, no-zero number. Requirements None. Prompts & Re sponses None. Effects 1. The command is applied to the n-th from the line indicated by range-1. Examples TYPE %BEGIN + 3 S IFOO/BARI .+1 line DATATRIEVE-11 V 1.1 Release Notes AA--O 1-1-0-6-T-C READER'S COMMENTS NOTE: This form is for document comments only. DIGITAL will use comments submitted on this form at the company's discretion. If you require a written reply and are eligible to receive one under Software Performance Report (SPR) service, submit your comments on an SPR form. , Did you find this manual understandable, usable, and well-organized? Please make suggestions for improvement. Did you find errors in this manual? If so, specify the error and the page number. Please indicate the type of user/reader that you most nearly represent. • D D D D D D Assembly language programmer Higher-level language programmer Occasional programmer (experienced) User with little programming experience Student programmer Other (please specify) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ Name __________________________________________________ Date __________________ ~ _____________ ~ ______ Or~nization------------------------------------------------------------------------------------------------ Street _____________________________________ 1"._. ~ _______________________________________________________________ City _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ____ State __________ Zip Code ___________ or Country ·-----------------------~-------------------------------------~oId lIere------------------------------------------------------------- .-------------------------------------------- Do Not Tear. Fold Here and Staple ----------------------------------------------. FIRST CLASS PERMIT NO. 33 I MAYNARD, MASS. i BUSINESS REPLY MAIL NO POSTAGE STAMP NECESSARY IF MAILED IN THE UNITED STATES Postage will be paid by: mamaomo Software Documentation 146 Main Street ML 5.5/E39 Maynard, Massachusetts 01754 " • digital equipment corporation Printed in U,S.A.
Home
Privacy and Data
Site structure and layout ©2025 Majenko Technologies