New Command [N]

Qedit 5.7 for HP-UX

Home Previous Next


New Command [N]

Creates a new, empty Qedit workfile and opens it. This can be either an unnamed extra scratch file or a named workfile. The advantages of a workfile are that you can instantly Open and Shut it, and that it compresses your data. You can use Text to make a copy of a Qedit file when you wish to protect the work you have done.

NEWfilename [,language [ (size) ]

NEW

(Default: extra scratch, 3200 lines)

Qedit shuts the current file and builds filename, which it then opens for editing. If you leave out filename, Qedit creates a new extra scratch file and assigns it a number (1,2,3..) so that you can recognize it in Verify Open and Open ?. Up to eight extra scratch files are allowed (see also the TextJ command). You cannot Exit without discarding or saving any edits you have done in an extra scratch file.

The language defaults to the current Set Lang value, but can be overridden.

If you want to force creating a Wide-Jumbo format, you should set the Length to a value larger than 1,000 before issuing the New command.

/Set Length 2500
/New newwork

These commands create a new permanent workfile called Newwork. If you want to create a new scratch file, enter the New command by itself.

The optional size is ignored by Qedit/UX. The maximum number of lines in a Qedit/UX workfile is 99,999,999.

Examples

/new                       {create an extra scratch file}
/new memos                 {create an empty file named Memos}
/set lang job              {define file as 80-column records}
/add
/new frankie               {build frankie}
/aq 1=johnny               {memos was shut automatically}

Building Workfiles with Text

You can also create new workfiles while doing a Text command.

/t frankie=johnny             {build Frankie file ...}
                              {and copy Johnny into it}


Home Previous Next