TYPE and EDIT Functions

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:

Adding Lines

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

ADD adds one or more lines into a file after the current line. The syntax is

Add n 

where:

n

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):

 FOCEXEC(EXAMPLE)                      SIZE=0     LINE=0

===== * * * TOP OF FILE * * *
===== * * * END OF FILE * * *






====> ADD 5
                                          EDITING MODE

After pressing the Enter key, five lines are added:

 FOCEXEC(EXAMPLE)                      SIZE=5     LINE=0

===== * * * TOP OF FILE * * *
=====
=====
=====
=====
=====
===== * * * END OF FILE * * *




====>
                                            EDITING MODE

==A==, ==I==

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.

PF2

To add a single line, position the cursor and press PF2. The new line appears immediately below.

CINS

Inserts a line after the cursor.

INPUT

INPUT enters the INPUT environment.

Moving the Current Line

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

:n

Enter the colon at the command line, using the following syntax

:n

where:

n

Is the number of the line you want to make the current line.

±n

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.

CUrline

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:

n

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:

 FOCEXEC(EXAMPLE)                      SIZE=5     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

Inserting and Replacing Text

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:

Command Line Commands

REplace
Overlay
Input

REplace

REPLACE completely replaces the text on the current line with a string of character(s) you specify. The syntax is

REplace string 

where:

string

Is the text you want to place on the current line.

Overlay

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:

string

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:

 FOCEXEC(EXAMPLE)                      SIZE=5     LINE=0

===== * * * TOP OF FILE * * *
==/== 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:

 FOCEXEC(EXAMPLE)                      SIZE=5     LINE=1

===== THIS WILL BE CHANGED TO THE LINE ABOVEBUT NOT THIS PART
===== THIS IS AN EXAMPLE OF THE OVERLAY COMMAND
=====
=====
=====
===== * * * END OF FILE * * *



====>
                                                  EDITING MODE

Input

The INPUT command allows you to input a string of characters after the current line. The syntax is

Input string 

where:

string

Is the text you want placed after the current line.

Deleting and Recovering Deleted Text

In this section:

The following commands delete or recover deleted text:

Command Line Commands

Prefix Area Commands

DELete

===D= 
==DD=

CDel

RECover

==D==

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:

n

Is the number (up to four digits) of lines to be deleted beginning with the line where the command is issued.

==DD=

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:

 FOCEXEC(EXAMPLE)                      SIZE=5     LINE=0

===== * * * 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:

 FOCEXEC(EXAMPLE)                      SIZE=2     LINE=0

===== * * * TOP OF FILE * * *
=====
=====
===== * * * END OF FILE * * *




====>
                                               EDITING MODE

DELete

To delete lines beginning with the line after the current line, use the DELETE command in one of the following forms

DELete n

where:

n

Is the number of lines to be deleted.

or

DELete /text

where:

text

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.

CDel

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.

RECover

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:

n

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:

  • You can only recover the last block of text deleted during your current TED session. After you terminate the session, the text is no longer recoverable.
  • The last recovered line becomes the current line.

The following screens illustrate the RECOVER command:

 FOCEXEC(EXAMPLE)                      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.

 FOCEXEC(EXAMPLE)                      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

Moving Through a File

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

BAckward

The BACKWARD command scrolls the screen toward the beginning of the file. The syntax is

BAckward n

where:

n

Is the number of screen pages.

FOrward

The FORWARD command scrolls the screen toward the end of the file. The syntax is

FOrward n

where:

n

Is the number of screen pages.

PF7, PF8, PF19, PF20

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.)

Top, Bottom

To scroll directly to the top of a file, enter:

Top

To scroll to the bottom of a file, enter:

Bottom

DOWN, UP, NEXT

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:

n

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:

n

Is the number of lines you want to move up.

:n

To scroll to a specific line, enter a colon command at the command line, using the following syntax

:n

where:

n

Is the number of the line to which you want to scroll.

±n

Enter a number preceded by a plus sign to scroll forward or a number preceded by minus sign to scroll backward n number of lines.

Locating and Changing Text

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.

Command Line Commands

Locate 
Change

Locate

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:

string

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.

Change

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:

oldstring

Is the sequence of characters that you wish to change.

newstring

Is the new character string.

n

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.

m

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:

 FOCEXEC(EXAMPLE)                      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.

 FOCEXEC(EXAMPLE)                      SIZE=6     LINE=0

===== * * * TOP OF FILE * * *
===== 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.

Copying and Moving Text

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=

COpy

To copy text lines in a file, use the COPY command with the following syntax

COpy n m

where:

n

Is the number of lines to copy beginning with the current line.

m

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).

==C==

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.

==CC=, ==""=

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:

 FOCEXEC(EXAMPLE)                      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:

 FOCEXEC(EXAMPLE)                      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.

=="n=

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.

DUplicat

To duplicate text from the current line to a specified line, use the following syntax

DUplicat n m

where:

n

Is the number of duplications.

m

Indicates how many lines are included in the duplication.

MOve

To move one or more lines of text, use the MOVE command with the following syntax

MOve n m

where:

n

Is the number of lines you want moved, starting with the current line.

m

Indicates how many lines down from the current line (relative line position) you want the moved lines placed.

==M==

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.

=MM==

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.

Joining and Splitting Text

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=

==J==

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.

 FOCEXEC(EXAMPLE)                      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:

 FOCEXEC(EXAMPLE)                      SIZE=3     LINE=0

===== * * * TOP OF FILE * * *
===== 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

Join

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.

=SP==

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.

SPLit

You can also use the SPLIT command to split a line after the cursor position and create a new line. Type the command at the command line, position the cursor where the text is to be split, and press the Enter key.

Editing Multiple Files

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):

Command Line Commands

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.

SPH, SPLITH

To split the screen horizontally and call a new file or an existing one, use the following syntax

SPH [filename]
SPLITH [filename]

where:

filename

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:

 FOCEXEC(EXAMPLE)                      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
------------------------------------------------------------------------
FOCEXEC(EXAMPLE)                      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 * * *

====>

SPV, SPLITV

To split the screen vertically and call a new or existing file, use the following syntax

SPV [filename]
SPLITV [filename]

where:

filename

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.

TEd

To edit another file without using the split screen facility, use the following syntax on z/OS:

TED ddname(member)

To edit another file without using the split screen facility, use the following syntax on distributed systems:

TED filename.ext

where:

ddname

Is the DDNAME allocated to the data set that contains the member to be edited on z/OS.

member

Is the name of the new member to be edited or created. Entering TED without the file name proceeds to the next file in the current window on z/OS.

filename.ext

Is the file name and extension of the file to be edited or created on distributed systems.

Transferring Text Between Files and Temporary Storage

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=

==PP=, PUT, PPUT

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:

n

Is the number of lines to pick up starting from the current line. The default is 1.

filename

Is the ddname(membername) of the file where you want to store the lines of text on z/OS. On distributed systems, it is a file name (name.ext). 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:

 FOCEXEC(EXAMPLE)                      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

==PLn

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.

==PD=, PUTD, PPUTD

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:

n

Is the number of lines to pick up and delete (from the source file) beginning with the current line.

filename

Is the ddname(member name) of the file where you want to store the lines of text on z/OS. On distributed systems, it is a file name (name.ext). 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

==G==, Get

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:

 FOCEXEC(EXAMPLE2)                     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:

 FOCEXEC(EXAMPLE2)                     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:

filename

Is the ddname(membername) of the file that contains the text on z/OS. On distributed systems, it is a file name (name.ext). 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:

  1. Place the lines in temporary storage using one of the PUT or PUTD commands described above.
  2. Enter the target file, using the TED command as described in Editing Multiple Files.
  3. Retrieve the lines from temporary storage using the GET command.

Displaying a Scale and Line Numbers

In this section:

To display or cancel a scale or line numbers on the screen, use the following commands:

Command Line Commands

NUm ON
NUm OFF
SCale ON
SCale OFF

NUm ON

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:

 FOCEXEC(EXAMPLE)                      SIZE=6     LINE=0

00000 * * * TOP OF FILE * * *
00001 THIS SCREEN SHOWS HOW
00002 LINE NUMBERS ARE DISPLAYED
00003
00004
00005
00006
00007 * * * END OF FILE * * *


====>
                                              EDITING MODE

NUm OFF

To replace the numbers with =, issue

NUm OFF

at the command line.

Note: This command returns you to EDIT.

SCale ON

To display a scale on the screen, type

SCale ON

at the command line, as seen in the following:

 FOCEXEC(EXAMPLE)                      SIZE=6     LINE=0
      ....+....1....+....2....+....3....+....4....+....5....+....6....+....7..
00000 * * * TOP OF FILE * * *
00001 THIS SCREEN SHOWS A SCALE
00002
00003
00004
00005
00006
00007 * * * END OF FILE * * *


====>
                                               EDITING MODE

SCale OFF

To remove the scale on the screen, type

SCale OFF

at the command line.

Displaying or Repeating the Previous Command

In this section:

The following commands enable you to display or repeat the previous command:

Command Line Commands

Function Keys

=

PF5

?

PF6

&

=, PF5

You can repeat the last command entered by typing the equal sign at the command line or pressing the PF5 key.

?, PF6

To display the previous command, enter ? at the command line, or press the PF6 key.

&

If you wish to repeat a command, precede it with & on the command line and press Enter again.

Moving the Screen Display

In this section:

In TED, you may create lines of up to 159 characters. 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

RIght

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.

RIGHTP, PF11

To move 30 columns to the right, press the PF11 key, or use the following syntax:

RIGHTP

LEft

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.

LEFTP, PF10

To move 30 columns to the left, press the PF10 key, or use the following syntax:

LEFTP

Specifying Uppercase and Lowercase Text

In this section:

The following commands control uppercase or lowercase text in a file.

Command Line Commands

CAse M 
CAse U
UPPercas
LOwercas

CAse M

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.

CAse U

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.

UPPercas

The UPPERCAS command sets the text to uppercase from the current line to a target line. The syntax is

UPPercas n 

where:

n

Is the number of lines to be converted to uppercase starting with the current line.

LOwercas

The LOWERCAS command sets the text to lowercase from the current line to a target line. The syntax is

LOwercas n 

where:

n

Is the number of lines you want to be lowercase starting with the current line.

Ending a TED Session

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

Quit, PF3

To terminate a TED session when the file has not been changed, enter

Quit

at the command line, or use the PF3 key.

QQuit

To terminate a TED session after making changes to a file that you do not wish to save, enter

QQuit

at the command line.

FILe

To terminate a TED session and save the changed file, enter

FILe [filename]

where:

filename

Is the name of the saved file. The default is the file name that appears on the first line of the screen.

For example:

 FOCEXEC(EXAMPLE)                      SIZE=5     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 MASTER(EXAMPLE
                                              EDITING MODE

SAve

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:

filename

Is the name of the saved file. The default is the file name that appears on the first line of the screen.

FFILE, SSAVE

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