TED Features

In this section:

Each of TED's four environments—INPUT, TYPE, EDIT, and PAINT—is discussed briefly here, and more fully in subsequent sections. This section describes the TED screen layout, the concepts of current line and command line, and how to move the cursor within TED.


Top of page

x
Screen Layout

When using TED, the following information about the file you are creating or editing is provided on the first line of the screen:

The first screen in CMS is:

EXAMPLE DATA             A1            SIZE=0            LINE=0
                                                                        
* * * TOP OF FILE * * *
* * * END OF FILE * * *
                                                                        
                                                                        
====>
                                                              TED

The first screen in z/OS is:

IBIMLH.TSOEXAMP.SALES                SIZE=0         LINE=0
                                                                        
* * * TOP OF FILE * * *
* * * END OF FILE * * *
                                                                        
                                                                        
====>
                                                             TED

Note: Screens used in these topics are from a CMS operating system; the only difference between a CMS and z/OS screen display in TED is the file name.



x
Current Line

The current line is the highlighted line on a screen. The current line is an important concept because most TED functions start with the current line. The line that is current changes during an editing session as you scroll the screen, move up and down, and so forth. Changing the current line is described in Moving the Current Line.


Top of page

x
Command Line

At the bottom of the screen there are four equal signs and an arrow. This is the command line. One of the ways you communicate with the editor is by entering TED commands on this line. Commands can be typed in either uppercase or lowercase or a combination of uppercase and lowercase, and may be abbreviated. Also note that no more than one line of text (including commands) can be issued at the command line.


Top of page

x
Moving the Cursor

You can use the following cursor control keys on your keyboard to position the cursor on the screen:

Moves the cursor down.

Moves the cursor up.

Moves the cursor to the right.

Moves the cursor to the left.

Tab

Moves the cursor to the next line in TYPE or to the next Tab stop in EDIT.

BackTab

Moves the cursor to the previous line.

Home

Moves the cursor to the top of the screen.

Return

Moves the cursor to the next line.



x
TYPE Environment

When you enter TED, you are automatically in TYPE (unless you use a TED profile to modify this; see Personalizing TED: PROFILE and PFnn). TED enables you to create lines up to 160 characters long in CMS (159 in z/OS). In TYPE, you can view up to 80 characters at a time.

Furthermore, TYPE provides easy-to-use commands to edit or create files. To use TYPE, simply enter a command at the command line and press the Enter key or use one of the many function keys. Commands and function keys are explained in detail in TYPE and EDIT Functions.

Note: To return to TYPE from another TED environment, enter the command TYPE at the command line.


Top of page

x
EDIT and Prefix Area Commands

EDIT is similar to TYPE. In both environments, you can create or edit files and use the command line to enter commands. In EDIT, however, you can also use prefix area commands.

The prefix area is the six columns furthest to the left columns on the screen where five equal signs (=====) and a space appear before the lines in the file. Each line in the file has a prefix area associated with it.

You can perform various editing tasks, like deleting lines or moving blocks of text, by entering short commands, called "prefix area commands," in the prefix area of any line.

To enter EDIT, type

EDIT

at the command line, and the following screen displays:

EXAMPLE   DATA            A1      SIZE=0        LINE=0
                                                                        
===== * * * TOP OF FILE * * *
===== * * * END OF FILE * * *
                                                                        
                                                                        
====>
                                                       EDITING MODE

EDIT is fully explained in TYPE and EDIT Functions.


Top of page

x
INPUT

Both TYPE and EDIT provide an INPUT mode. INPUT is used for creating files and enables you to type anywhere on the screen without predefining space for a file. To enter INPUT mode, type

INPUT

at the command line. To return to TYPE or EDIT, press the Enter key twice.


Top of page

x
PAINT

The FOCUS Screen Painter enables you to create FIDEL screens in a full-screen editing environment, by simply "painting" the screen image. Screen Painter then automatically generates the FIDEL code and places it in your file. For a complete explanation of the PAINT environment and FIDEL, see the Maintaining Databases manual.

To access Screen Painter, place a CRTFORM in the file being edited and then enter the following at the command line (or press PF4):

PAINT

TED scans down the file from the current line until the first CRTFORM statement is found. This statement becomes the current line and invokes Screen Painter.

If you want to call a CRTFORM other than the first one, specify the number of the CRTFORM in the PAINT command. For example, the following accesses the third CRTFORM from the current line:

PAINT 3

Information Builders