In this section: |
|
The following sections describe the various functions within TYPE and EDIT.
In TYPE, you may use function keys or issue commands on the command line.
In EDIT, you can use function keys, command line commands, and prefix area commands. Prefix area commands can be placed anywhere in the prefix area.
Note:
In this section: |
When creating a file or adding data to an existing one, you must first make space available in the file. The following commands enable you to add lines:
Command Line Commands |
Prefix Area Commands |
Function Keys |
---|---|---|
Add |
==A== |
PF2 |
CINS |
PF2 | |
Input |
==I== |
Add |
ADD adds one or more lines into a file after the current line. The syntax is
Add n
where:
Is any number of lines you are adding.
For example, the following screen shows how to add five lines after the current line (the current line, in this case, is the TOP OF FILE line):
EXAMPLE DATA A1 SIZE=0 LINE=0 ===== * * * TOP OF FILE * * * ===== * * * END OF FILE * * * ====>ADD 5 EDITING MODE |
After pressing the Enter key, five lines are added, as shown below.
EXAMPLE DATA A1 SIZE=5 LINE=1 ===== * * * TOP OF FILE * * * ===== ===== ===== ===== ===== ===== * * * END OF FILE * * * ====> EDITING MODE |
The prefix area command =An== means to add n lines to the file starting with the line in which the command is issued (where n can be any number up to 9999). The cursor is positioned to the first new line. =In== is identical to ==An=. If n is omitted, the default is line 1.
To add a single line, position the cursor and press PF2. The new line appears immediately below.
In this section: |
Most of the commands in this section use the location of the current line as a reference point. For this reason, it is important to know how to move the current line. You can also specify where you want the file to appear on the screen; that is, whether the current line should appear at the top, middle, or bottom of the screen.
The following commands are used to adjust the position of the current line on the screen:
Command Line Commands |
Prefix Area Commands |
---|---|
:n |
==/== |
+n | |
Curline |
Enter the colon at the command line, using the following syntax
:n
where:
Is the number of the line you want to make the current line.
Enter a number with a plus sign to move the current line forward or a minus sign to move the current line backward n number of lines.
Enter the slash in the prefix area of the line you want to be the current line. Then, press Enter.
If you want the current line to be displayed on the top, middle, or bottom of the screen, use the following syntax
CUrline n
where:
Is the number of the line on the screen where the current line will be displayed. To return the current line to the top of the screen omit n.
For example, if you issued the command CURLINE 5, the screen would look like this:
EXAMPLE DATA A1 SIZE=3 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS SCREEN SHOWS WHAT HAPPENS WHEN YOU USE THE ===== CURLINE COMMAND. NOTICE THE FIRST LINE OF THE SCREEN ===== IS ON THE FIFTH PHYSICAL LINE OF THE SCREEN. ===== * * * END OF FILE * * * ====> EDITING MODE |
In this section: |
Once you have made space in your file, you can move the cursor to that space and type whatever you want into the file. You can also insert or replace text using the following commands:
REPLACE completely replaces the text on the current line with a string of character(s) you specify. The syntax is
REplace string
where:
Is the text you want to place on the current line.
The OVERLAY command is used to overlay a string of text located on the current line. When you use it, the characters in the new string will be placed on the current line. The new string will only overlay its own length. Unlike the REPLACE command, OVERLAY will not replace the entire text on the current line. The syntax is
Overlay string
where:
Is the string of text that you want to place on the current line without removing existing text.
Note: Only non-blank characters in the string will overlay.
For example:
EXAMPLE DATA A1 SIZE=3 LINE=0 THIS WILL BE CHANGED TO THE NEXT LINE BUT NOT THIS PART THIS IS AN EXAMPLE OF THE OVERLAY COMMAND * * * END OF FILE * * * ====> OVERLAY THIS WILL BE CHANGED TO THE LINE ABOVE EDITING MODE |
After pressing the Enter key, the following screen appears:
EXAMPLE DATA A1 SIZE=3 LINE=2 THIS WILL BE CHANGED TO THE LINE ABOVE BUT NOT THIS PART THIS IS AN EXAMPLE OF THE OVERLAY COMMAND * * * END OF FILE * * * ====> EDITING MODE |
In this section: |
The following commands delete or recover deleted text:
Command Line Commands |
Prefix Area Commands |
---|---|
DELete |
===D= ==DD= |
CDel | |
RECover |
To delete a line, type the letter D in the prefix area of the line to be removed, and press the Enter key.
You can also use the syntax
==Dn=
where:
Is the number (up to four digits) of lines to be deleted beginning with the line where the command is issued.
To delete a block of lines, enter the letters DD in the prefix area in the first and last lines of the block to be deleted. For example:
EXAMPLE DATA A1 SIZE=3 LINE=1 ===== * * * TOP OF FILE * * * ==DD= THIS LINE WILL BE DELETED, ALONG WITH THE FOLLOWING ===== TWO LINES ==DD= THIS ONE TOO. ===== * * * END OF FILE * * * ====> EDITING MODE |
After you use the DD prefix area command, the previous screen looks like this:
EXAMPLE DATA A1 SIZE=0 LINE=0 ===== * * * TOP OF FILE * * * ===== * * * END OF FILE * * * ====> EDITING MODE |
To delete lines beginning with the line after the current line, use the DELETE command in one of the following forms
DELete n
where:
Is the number of lines to be deleted.
or
DELete /text
where:
All of the lines from the current line to the line with "text" are deleted. "Text" must be preceded by a delimiter, which can be any special character (not alphabetical or numeric) that does not appear in the string itself. In this case, the slash is the delimiter.
To delete a line that is not the current line, type CD on the command line, position the cursor at the desired line, and press Enter.
Suppose that after making a deletion, you wish to recover the deleted text. Use the RECOVER command, followed by the number of lines to be recovered. The syntax is
RECover n
where:
Is the number of lines to be recovered. Instead of a number, you can use an asterisk (*) to recover all the lines. If n is omitted, it defaults to 1.
Note:
The following screens illustrate the RECOVER command:
EXAMPLE DATA A1 SIZE=4 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS SCREEN WILL SHOW WHAT HAPPENS WHEN YOU USE THE ===== RECOVER COMMAND. THE THIRD LINE WILL BE DELETED. ==D== THIS IS THE THIRD LINE. ===== THEN IT WILL BE RETURNED BACK AT THE CURRENT LINE. ===== * * * END OF FILE * * * ====> EDITING MODE |
After you press the Enter key (and the line is deleted), you can issue the RECOVER command. After you issue this command, the screen appears with the recovered line immediately after the current line.
EXAMPLE DATA A1 SIZE=4 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS IS THE THIRD LINE. ===== THIS SCREEN WILL SHOW WHAT HAPPENS WHEN YOU USE THE ===== RECOVER COMMAND. THE THIRD LINE WILL BE DELETED. ===== THEN IT WILL BE RETURNED BACK AT THE CURRENT LINE. ===== * * * END OF FILE * * * ====> EDITING MODE |
In this section: |
Scrolling a screen is like turning the pages of a book. When you move the screen forward or backward, you automatically change the current line. The following commands enable you to scroll through a file:
Command Line Commands |
Function Keys |
---|---|
BAckward |
PF7 and PF19 |
FOrward |
PF8 and PF20 |
Top | |
Bottom | |
DOWN | |
UP | |
NEXT | |
:n | |
±n |
The BACKWARD command scrolls the screen toward the beginning of the file. The syntax is
BAckward n
where:
Is the number of screen pages.
The FORWARD command scrolls the screen toward the end of the file. The syntax is
FOrward n
where:
Is the number of screen pages.
Another way to move backward and forward in a file is using the following control keys:
PF7 |
Scrolls the screen view back one full screen page. (You can also use PF19.) |
PF8 |
Scrolls the screen view forward one full screen page. (You can also use PF20.) |
To scroll directly to the top of a file, enter:
Top
To scroll to the bottom of a file, enter:
Bottom
Suppose that you want to move the file up or down a few lines instead of a whole screen. With the DOWN command, you can specify how many lines you want to scroll down. The syntax is
DOWN n
where:
Is the number of lines you want to scroll down.
The NEXT command is identical to DOWN.
With the UP command, you can specify how many lines you want to scroll up. The syntax is
UP n
where:
Is the number of lines you want to move up.
To scroll to a specific line, enter a colon command at the command line, using the following syntax
:n
where:
Is the number of the line to which you want to scroll.
In this section: |
When viewing a file that you wish to modify, you can either move the cursor to the lines to be edited and type over the text, or use the LOCATE and CHANGE commands.
The LOCATE command searches the file beginning at the current line for a character string you specify. If the character string is located, the line containing the string becomes the current line. The syntax is
Locate/string/
where:
Is the string you wish to locate. The string must have delimiters. You can use a slash (/) or any special character (non-alphanumeric) that does not appear in the string itself. Note that the word LOCATE is optional. You can start with /.
If the string that you seek is behind the current line (toward the top of the file), you can specify a backward search by typing a minus sign (-) in front of the string. For example:
LOCATE -/GOOD/
To locate more than one occurrence of a string, attach an ampersand (&) to LOCATE (the & command is explained in Displaying or Repeating the Previous Command). For example:
&LOCATE/string/
Each time you press the Enter key, the next string occurrence located appears as the current line.
To change a string of characters at the current line or throughout a file, you can use the CHANGE command. The full syntax of this command is
Change/oldstring/newstring/ n m
where:
Is the sequence of characters that you wish to change.
Is the new character string.
Is the number of lines from the current line that you want to scan and change. You can use an asterisk (*) to indicate all lines in a file from the current line.
Is the number of changes on each line. You can use an asterisk (*) to indicate all occurrences in each line.
newstring and oldstring must have delimiters. You can use any special character (no alphabetics or numerics) that does not appear in the string itself.
For example:
EXAMPLE DATA A1 SIZE=6 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS SCREEN SHOWS HOW TO CHANGE A STRING OF CHARACTERS. ===== THIS SCREEN ALSO SHOWS HOW TO USE THE CHANGE COMMAND. ===== NOTICE HOW THE FIRST TWO LINES BEGIN WITH 'THIS SCREEN.' ===== NOTICE HOW EVERYTHING WILL CHANGE FROM THE CURRENT LINE ===== TO THE END OF FILE. ===== THIS SCREEN SHOWS HOW TO CHANGE A STRING OF CHARACTERS. ===== * * * END OF FILE * * * ====> CHANGE/THIS SCREEN/THIS EXAMPLE/* * EDITING MODE |
After you press the Enter key, each occurrence of THIS SCREEN changes to THIS EXAMPLE. When you use the CHANGE command, TED displays the number of occurrences changed, as shown below.
EXAMPLE DATA A1 SIZE=6 LINE=6 OCCURRENCE(S) CHANGED: 4 ===== THIS EXAMPLE SHOWS HOW TO CHANGE A STRING OF CHARACTERS. ===== THIS EXAMPLE ALSO SHOWS HOW TO USE THE CHANGE COMMAND. ===== NOTICE HOW THE FIRST TWO LINES BEGIN WITH 'THIS EXAMPLE.' ===== NOTICE HOW EVERYTHING WILL CHANGE FROM THE CURRENT LINE ===== TO THE END OF FILE. ===== THIS EXAMPLE SHOWS HOW TO CHANGE A STRING OF CHARACTERS. ===== * * * END OF FILE * * * ====> EDITING MODE |
Note that the last line changed has become the current line.
In this section: |
The following commands duplicate and move text in a file:
Command Line Commands |
Prefix Area Commands |
---|---|
COpy |
==C== ==CC= ==" "= |
DUplicat |
=="n= |
MOve |
==M== ==MM= |
To copy text lines in a file, use the COPY command with the following syntax
COpy n m
where:
Is the number of lines to copy beginning with the current line.
Indicates where you want the copied lines placed, as the number of lines away from the current line (relative line position).
For example, if the current line is line 5 and you entered
CO 3 10
three lines (starting with the current line) would be copied and placed immediately after line 15 (line 5 + 10 lines = line 15).
To duplicate a line in EDIT mode, enter the letter C in the prefix area. You must then indicate where the copied line will be inserted. Enter either the letter F (following) or P (preceding) in the prefix area of another line. You can also place a number after C to indicate the number of lines you want copied.
To copy a block of text consisting of more than one line, enter the letters CC in the prefix area of the first and last lines of the block to be copied. Enter either the letter F (following) or P (preceding) in the prefix area of another line depending on where you want the duplicated line(s) to appear. For example:
EXAMPLE MASTER A1 SIZE=4 LINE=0 ===== * * * TOP OF FILE * * * ==CC= THIS EXAMPLE SHOWS HOW TO COPY A BLOCK OF TEXT. ==CC= THIS EXAMPLE ALSO SHOWS HOW YOU TO USE THE CC COMMAND. ===== YOU DON'T HAVE TO READ THIS. ==F== YOU DON'T HAVE TO READ THIS EITHER. ===== * * * END OF FILE * * * ====> EDITING MODE |
When you press the Enter key, the following screen appears:
EXAMPLE DATA A1 SIZE=6 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS EXAMPLE SHOWS HOW TO COPY A BLOCK OF TEXT. ===== THIS EXAMPLE ALSO SHOWS HOW YOU TO USE THE CC COMMAND. ===== YOU DON'T HAVE TO READ THIS. ===== YOU DON'T HAVE TO READ THIS EITHER. ===== THIS EXAMPLE SHOWS HOW TO COPY A BLOCK OF TEXT. ===== THIS EXAMPLE ALSO SHOWS HOW YOU TO USE THE CC COMMAND. ===== * * * END OF FILE * * * ====> EDITING MODE |
Note: F or P may not lie within the block to be copied.
If you place the prefix area command =" "== at the top line and bottom line of a block of text and press Enter, the block is duplicated immediately after its present position.
To duplicate a line, enter a double quotation mark followed by the number of times you want the line duplicated. To duplicate a block of text, enter an additional double quotation mark in the prefix area of the last line of the block. If a number (n) is omitted, one line is duplicated. Text appears in lines following the current line.
To duplicate text from the current line to a specified line, use the following syntax
DUplicat n m
where:
Is the number of duplications.
Indicates how many lines are included in the duplication.
To move one or more lines of text, use the MOVE command with the following syntax
MOve n m
where:
Is the number of lines you want moved, starting with the current line.
Indicates how many lines down from the current line (relative line position) you want the moved lines placed.
To move a line, enter the letter M in the prefix area. Then indicate where the moved line will be inserted. Enter either the letter F (following) or P (preceding) in the prefix area of another line depending on where you want the line(s) to be placed. You can also place a number next to M, indicating the number of lines you want moved.
To move a block of text, enter the letters MM in the prefix area of the first and last lines of the block to be moved. Then indicate where the moved lines will be inserted. Enter either the letter F (following) or P (preceding) in the prefix area of another line depending on where you want the line(s) to be placed. Note that F or P may not lie within the block to be moved.
In this section: |
In addition to moving or copying text in a file, you can join, move, or split lines using the following commands:
Command Line Commands |
Prefix Area Commands |
---|---|
Join |
==J== |
SPLit |
==SP= |
To join two consecutive lines, enter the letter J in the prefix area of the line that will be joined. Then position the cursor on the spot where you want the join to take place and press the Enter key.
EXAMPLE DATA A1 SIZE=4 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS SCREEN SHOWS HOW THE ==J== COMMAND WORKS. ==J== THIS LINE WILL BE JOINED ===== TO THIS LINE. ===== JUST POSITION THE CURSOR WHERE YOU WANT TO JOIN LINES. ===== * * * END OF FILE * * * ====> EDITING MODE |
Note that the cursor is at the end of the line. When you press the Enter key, the following screen appears:
EXAMPLE DATA A1 SIZE=3 LINE=1 ===== THIS SCREEN SHOWS HOW THE ==J== COMMAND WORKS. ===== THIS LINE WILL BE JOINED TO THIS LINE. ===== JUST POSITION THE CURSOR WHERE YOU WANT TO JOIN LINES. ===== * * * END OF FILE * * * ====> EDITING MODE |
To join two consecutive lines from the command line, type the Join command, position the cursor at the place where you want the join to take place, and press the Enter key.
To split a line, enter the letters SP in the prefix area, place the cursor where the text is to be split into a separate line, and press the Enter key.
In this section: |
By entering any of the following commands at the command line you can display, edit, or create up to four files at the same time (or four sections of the same file):
SPH SPLITH SPV SPLITV TEd
Each file remains on the screen until you enter a FILE or QUIT command. You can use any TED facility in each window. To move the cursor from one window (that is, file) to another, use the cursor control keys.
To split the screen horizontally and call a new file or an existing one, use the following syntax
SPH [filename] SPLITH [filename]
where:
Is the name of the file you want displayed horizontally. If you omit the file name, another copy of the current file is displayed.
The command SPLITH is identical to SPH. For example, if you enter SPLITH with no file name, the existing file is repeated in a second, horizontal, window of the screen, as shown below:
EXAMPLE DATA A1 SIZE=4 LINE=0 * * * TOP OF FILE * * * THIS IS AN EXAMPLE OF SPLIT SCREEN IN TED. YOU CAN USE SPH, SPLITH, SPV, OR SPLITV COMMANDS. IF YOU DO NOT SPECIFY A FILENAME, THE FILE PRESENTLY LOADED IN TED WILL BE SPLIT. * * * END OF FILE * * * ====> EDITING MODE ----------------------------------------------------------------------- EXAMPLE DATA A1 SIZE=4 LINE=0 * * * TOP OF FILE * * * THIS IS AN EXAMPLE OF SPLIT SCREEN IN TED. YOU CAN USE SPH, SPLITH, SPV, OR SPLITV COMMANDS. IF YOU DO NOT SPECIFY A FILENAME, THE FILE PRESENTLY LOADED IN TED WILL BE SPLIT. * * * END OF FILE * * * ====> EDITING MODE |
To split the screen vertically and call a new or existing file, use the following syntax
SPV [filename] SPLITV [filename]
where:
Is the name of the file you want displayed vertically. If you omit the file name, another copy of the current file is displayed.
The command SPLITV is identical to SPV.
In this section: |
To insert all or part of one file into another file, use the following commands:
Command Line Commands |
Prefix Area Commands |
---|---|
PUT |
==PP= |
PPUT |
==PL= |
PUTD PPUTD |
==PD= |
Get |
===G= |
To temporarily store a copy of a line, or block of lines for subsequent insertion in the same or another file, enter the letters PP in the first and last lines to be transferred. The lines remain in the source file.
You can also use the command PUT using the following syntax
PUT [n] [filename]
where:
Is the number of lines to pick up starting from the current line. The default is 1.
Is the name of the file where you want to store the lines of text. In z/OS, the file name is ddname(member name). If you omit the file name, it defaults to a temporary storage area. You can retrieve the lines using the GET or ==G== command.
For example:
EXAMPLE DATA A1 SIZE=4 LINE=0 ===== * * * TOP OF FILE * * * ==PP= THIS IS AN EXAMPLE OF COPYING TEXT FROM ONE FILE ===== TO ANOTHER. ==PP= COPIES THE SPECIFIED TEXT AND ===== PUTS IT IN A TEMPORARY FILE. YOU CAN THEN USE THE ==PP= GET COMMAND TO RETRIEVE THE COPIED TEXT. ===== * * * END OF FILE * * * ====> EDITING MODE |
If the file name already exists, and you want to overwrite the existing file, use the command:
PPUT
To insert n lines of text into a temporary file, use the PL prefix-area command. When no n is specified, it defaults to 1. The line remains in the source file.
To temporarily store a block of lines and delete them from the source file, enter the letters PD in the prefix area of the first and last lines of the block of text. The command PUTD n has the same effect as ==PD=. It has the following syntax
PUTD n [filename]
where:
Is the number of lines to pick up and delete (from the source file) beginning with the current line.
Is the name of the file where you want to store the lines of text. If you omit the file name, it defaults to a temporary storage area. You can retrieve the lines using the GET or ==G== command.
If the file name already exists, and you want to overwrite the existing file, use the command:
PPUTD
To recall lines from the default temporary storage file, enter the letter "G" in the prefix area of the line preceding the point of insertion. For example:
NEWFILE DATA A1 SIZE=2 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS IS A NEW FILE IN WHICH COPIED TEXT FROM ANOTHER ==G== FILE WILL BE INSERTED BELOW USING ===G= command. ===== * * * END OF FILE * * * ====> EDITING MODE |
When you press the Enter key, the following screen appears:
NEWFILE DATA A1 SIZE=6 LINE=0 ===== * * * TOP OF FILE * * * ===== THIS IS A NEW FILE IN WHICH COPIED TEXT FROM ANOTHER ===== FILE WILL BE INSERTED BELOW USING ===G= command. ===== THIS IS AN EXAMPLE OF COPYING TEXT FROM ONE FILE ===== TO ANOTHER. ==PP= COPIES THE SPECIFIED TEXT AND ===== PUTS IT IN A TEMPORARY FILE. YOU CAN THEN USE THE ===== GET COMMAND TO RETRIEVE THE COPIED TEXT. ===== * * * END OF FILE * * * ====> EDITING MODE |
You can also use the command GET with the following syntax
Get [filename]
where:
Is the name of the file that contains the text. In z/OS, the file name is ddname(member name). If you omit the file name, TED searches for text in the temporary storage area used by PUT.
Note: When transferring lines between files using temporary storage, do not leave the TED environment. Rather, follow this procedure:
In this section: |
To display or cancel a scale or line numbers on the screen, use the following commands:
To replace the prefix area with numbers, enter
NUm ON
at the command line. Prefix area commands can be issued while line numbers are displayed. If you use this command in TYPE mode, it changes to EDIT and displays the line numbers. For example:
EXAMPLE DATA A1 SIZE=5 LINE=0 00000 * * * TOP OF FILE * * * 00001 THIS SCREEN SHOWS HOW 00002 LINE NUMBERS ARE DISPLAYED 00003 00004 00005 00006 * * * END OF FILE * * * ====> EDITING MODE |
To replace the numbers with =, issue
NUm OFF
at the command line.
Note: This command returns you to EDIT.
To display a scale on the screen, type
SCale ON
at the command line, as seen in the following:
EXAMPLE DATA A1 SIZE=4 LINE=0 ....+....1....+....2....+....3....+....4....+....5....+....6....+....7 ===== * * * TOP OF FILE * * * ===== THIS SCREEN SHOWS A SCALE ===== ===== ===== ===== * * * END OF FILE * * * ====> EDITING MODE |
In this section: |
The following commands enable you to display or repeat the previous command:
Command Line Commands |
Function Keys |
---|---|
= |
PF5 |
? |
PF6 |
& |
You can repeat the last command entered by typing the equal sign at the command line or pressing the PF5 key.
In this section: |
In TED, you may create lines of up to 160 characters in CMS (159 in TSO). When a line of text exceeds the 80 columns on a screen, you can move the screen display left or right to view the additional text.
Command Line Commands |
Function Keys |
---|---|
RIght RIGHTP |
PF11, PF23 |
LEft LEFTP |
PF10 |
To move one full screen view (80 columns) to the right, enter
RIght
at the command line. You can also follow this command with a number. This will move that number of columns to the right.
To move 30 columns to the right, press the PF11 key, or use the following syntax:
RIGHTP
To move one full screen (80 columns) to the left, enter
LEft [n]
at the command line. You can also follow this command with a number. This will move the screen that number of columns to the left.
In this section: |
The following commands control uppercase or lowercase text in a file.
To have uppercase and lowercase characters enter
CAse M
at the command line.
Note: You must issue this command before entering the text because the default is uppercase.
To get only uppercase characters enter:
CAse U
Note that although characters may be typed in lowercase, they will be converted to uppercase when you press the Enter key.
The UPPERCAS command sets the text to uppercase from the current line to a target line. The syntax is
UPPercas n
where:
Is the number of lines to be converted to uppercase starting with the current line.
In this section: |
The following commands are used to terminate a TED session. With the exception of SAVE, which keeps you in TED, each of these commands returns you to the FOCUS command level.
Command Line Commands |
Function Keys |
---|---|
Quit |
PF3 |
QQuit | |
FILe | |
SAve | |
FFILE | |
SSAVE |
To terminate a TED session when the file has not been changed, enter
Quit
at the command line, or use the PF3 key.
To terminate a TED session after making changes to a file that you do not wish to save, enter
QQuit
at the command line.
To terminate a TED session and save the changed file, enter
FILe [filename]
where:
Is the name of the saved file. The default is the file name that appears on the first line of the screen.
For example:
EXAMPLE MASTER A1 SIZE=7 LINE=0 * * * TOP OF FILE * * * THE INPUT MODE IS AN EASY WAY TO ENTER DATA. SIMPLY TYPE THE DATA, AND PRESS THE TAB KEY TO GO TO THE NEXT LINE. WHEN YOU HAVE FINISHED, JUST PRESS THE ENTER KEY TWICE, AND YOU WILL BE BACK IN TYPE MODE. * * * END OF FILE * * * ====> FILE EXAMPLE MASTER EDITING MODE |
You can also use the SAVE command to save a file as it appears and continue the TED session using the following syntax
SAve [filename]
where:
Is the name of the saved file. The default is the file name that appears on the first line of the screen.
There are times when you wish to store a file under a name other than the original name. To do so, see the TED command FILE. If the new file name already exists, you will be informed and asked to use either FFILE or SSAVE to overwrite the existing file.
Note: FFILE returns you to the FOCUS command level; SSAVE enables you to continue the TED session.
Information Builders |