beautypg.com

HP NonStop G-Series User Manual

Page 146

background image

GET Command

EDIT Command Summary

058061 Tandem Computers Incorporated

4–67

2.

This second example illustrates using a non-EDIT-format disk file with
the GET command.

*SET INLEN 128
*GET TEST
NAME THE NEW FILE: NEWTEST
*

Omits the PUT keyword

EDIT reads 128-byte records from the disk file named TEST until the
end-of-file. The data is put into the EDIT file named NEWTEST.

Adding Text From a Nondisk Device or Non-EDIT-Format Disk File

The commands:

*SET INLEN 100

*GET $TAPE NUM 30/50 TO 995.01

*

causes EDIT to read 100-byte physical records from $TAPE and add the
thirtieth through fiftieth records to the current file beginning at line number
995.01.

Tip

When you issue a GET command and

filename1

is an EDIT-format file,

EDIT checks the validity of the file format. If EDIT detects any validity
errors, it prints the message:

THIS FILE IS INVALID. DO YOU WANT TO RECOVER?

If this happens to you, see the recovery procedure in Appendix B, “EDIT
Error Recovery Procedure.”

This manual is related to the following products: