The EDT (Editor) may not seem important at first glance, but it is actually a very helpful tool. It is mainly used to edit texts and/or procedures. One of the main features of the EDT is its comprehensive procedure language for automating tasks. You can use the EDT to do the following:
Enter, change, insert and delete dataCreate and set up files, POSIX files and library elementsWrite files and library elements to disks and read them from disksSearch for data in a file or library elementDisplay data on the terminal or send data to the printer
View the training program
offered by the Fujitsu EPS Academy
WBT Introduction to BS2000 mainframes
Organisation von Daten in Dateien
WBT Introduction to the DVS in BS2000
Or send us an e-mail
This web-based training (WBT) provides you with insights into the EDT in BS2000. The abbreviation stands for “Editor.” The EDT is required when working with the BS2000 operating system. It is used to edit files. This WBT covers only a small part of this comprehensive tool. Detailed know-how about the EDT and other products for the BS2000 mainframe operating system is provided in training offered by the Fujitsu EPS Academy.
View the training programm
offered by the Fujitsu EPS Academy
approx. 20 minutes
The work window on the screen of the data display terminal; input can be entered hereThe EDT work space in the virtual memory, the so-called work fileHard disk
When the data input is completed, the content of the work file is written per command to the hard disk as a SAM, ISAM or POSIX file, or as a library element.
Then you write the corrected work file per command back to the hard disk. The file content on the disk will be overwritten.
You can change an existing file by first reading it into the work file. The first 23 lines of this work file are then shown in the work window on the screen of the data display terminal.
The EDT works according to the following principle:
When you call up the EDT, the work file in the virtual memory is empty. To create a file, you must first enter data in the work window and then transfer the content of the work window to the work file by pressing the function key (DUE).
Daten, die von einem Speicher in einen anderen übertragen werden, bleiben im sendenden Speicher unverändert. Wurde eine Datei falsch geändert, die man von Platte in die Arbeitsdatei gelesen hat, kann man auf die Plattendatei zurückgreifen. Hat man am Bildschirm Fehler gemacht, kann man auf die Arbeitsdatei zurückgreifen.
You can then make changes per command. These are shown in the work window and saved. The function key (DUE) is used to transfer the content of the work window to the work file.
The functional principle
The operation modes
Learn more about the EDT – step by step.
The work modes
The work window
The work window is comprised of five sections. Click for details about each section.
The command line
This is where commands are input. You can enter one or several commands (command sequence) in the command line. The individual commands are separated by a semicolon (;).
Once a command has been successfully performed, it will be deleted from the command line. If an error occurs, an error message and the unprocessed part of the command, as well as the faulty command, are displayed.
The data window
This is where data sets are input; this window also shows the current work file.
A work file is comprised of data sets that are output in the lines of the data window. One data set can be longer than one line in the data window. In such cases only part of the set is visible in the data window. You can use a command to call up the complete display of longer data sets.
The marking column
You can initiate functions by entering short single-character commands in the marking column.
Examples of this include the deletion of data sets, the insertion of characters and the copying of specific areas.
The empty work window will appear on the display screen.
The EDT is called up with the /EDT command.
The line number of the first line in the work window (6 digits)The column number from which the data sets in the data window are displayed (3 digits)The number of the displayed work file (in parentheses)
The status display
The status display shows the following, from left to right:
The line number display
This is where the line numbers of the text in the data window are shown.
The line number display appears by default when you call up the EDT. You can use a command to prevent the line number display from appearing.
Compatibility ModeUnicode Mode
The character sets in the texts play an important role in file editing. The EDT has two operation modes:
Here each work file can have a different character set. Sets can be longer than 256 characters.
To call up the Unicode Mode use /EDTU or /START-EDTU
The EDT always has precisely one character set activated in Compatibility Mode. In other words, only those texts residing in the same character set can be edited simultaneously in Compatibility Mode.
This character set can only be changed if no work files are available. The character set is defined at that moment when data enters a work file. The EDT communicates in this character set with the data display terminal and writes/reads input and output at other sources.
One character set for all work files. Maximum set length: 256 bytes.
To call up the Compatibility Mode use
/EDT or /START-EDT
Here each work file can be set to a different character set. Thus data can be edited in various work files having different character sets. These character sets can be changed at any time via the @CODENAME command.
In Unicode Mode the EDT offers the most comprehensive functionality, including function extensions.
File editing takes place in three memory areas
Data in all memory areas is changed immediately
True or false? Can you pick out the right answer?
You can only edit text files with the EDT
The work area in the EDT is called the work file
Short commands are comprised of one character and can be entered in the marking column in F-Mode. You can thus quickly copy or delete data sets, or easily do a number of other things.
Some of the short commands that you can use are described in this section.
Commands are used to start EDT functions and to make settings.
Commands are initiated in L-Mode with the EDT command symbol (by default: @ plus characters).
In F-Mode commands are entered in the command line.
Some of the commands that you can use are described in this section.
In L-Mode commands begin with a symbol
To be on the safe side, the EDT asks you if you really want to overwrite an existing file after changes have been made
You can create a new work file by using CREATE
There are only short commands in F-Mode
Kurzes Round-up mit Video des DVS - angepasst auf EDT - um den Bereich EPS als starken Partner im Bereich Mainframe zu verankern.
Overview of selected short commands
Mark a line as destination (after, before, over)
Copy a line into the command line
Mark a line for repeated copying
Add a marked line to end of the line that comes before it
Set lines to “overwrite” in order to make changes
Mark a line for copying, delete send area
Mark a set for deletion
Mark a line to copy once
Deletes a copy buffer created through C, R, M
Change all characters in the line to upper case or lower case letters (upper/lower)
Insert new line(s)/repeated insert function
Short commands are usually initiated with the DUE key or a function key on the data display terminal.
Set positioning of the work window (horizontal/vertical)
Syntax test via SDF
U / L
Make marked line the first (+) or the last (-)
+ / -
Moving one line after another line: A line is marked with C and then copied after a line marked with A. The copy buffer – which contains the data set with the line(s) marked with C – will then be deleted by the EDT.
Grouping lines together for copying: In this example the short command C is used in an attempt to copy line 7 into the copy buffer and then using A (after) to insert it after line 3 and with B (before) to insert it ahead of line 4. The attempt to insert the line before line 4 results in an error message. To copy lines repeatedly, you need to gather them together with the command R.
Deleting data sets: In this example the short command D is used to delete line 3 from the work file.
Changing/modifying lines: The short command X activates the overwriting of lines in order to change them. You can then make the changes, as in the example where the zip code was missing.
Inserting lines: You can use the short command 1..9 to insert new lines at the beginning of lines 1 through 9 on the display screen. In this example four new lines are inserted at the beginning of line four.
Settings in the EDTEditing filesPositioning or changing to another work fileHandling line numbersCreating, inserting and changing textsCopying and moving linesCalling up a software application
Deleting work files, lines, texts and markingsComparing work filesOutput of lines and informationChanging from work mode and operation modeInterrupting or ending the EDTWorking with job variablesCombining single commands to form procedures
Overview of commands in EDT
The EDT has commands for various tasks. They are used according to a clearly defined meta syntax and operand syntax which need not be discussed here in detail. The examples refer to files, POSIX files and library elements. Commands are available for the following:
Turns the display of a second work window on the display screen on or off in F-Mode
Defines a new command symbol
Settings in the EDT
Overview of selected commands in EDT
Here is a brief list of typical commands in the EDT.
Turns the line number display for the current work file on or off in F-Mode
Opens a file or library element and reads it into the current work file or creates a new file and opens it for editing
Outputs the table of contents of a library or a list of files from the BS2000 catalog or from a POSIX directory
Writes the content of the current work file into a new file or overwrites an existing file with the content of the work file
Deletes files or elements in a library
Creates a line with the content given
Creating, inserting and changing texts
Places a prefix before every line or character sequence variable in the area specified
Sorts related line areas in the current work file in ascending or descending order; column limitations are possible
Searches for a character sequence and replaces this when hits occur with the text given
Deleting work files, lines, texts and markings
Moves lines or character sequence variables into the current work file or from another work file and then deletes them at their original positions
Copying and moving lines
Deletes work files completely; deletes markings, lines or character sequence variables completely or partially
Copies lines or a character sequence variable into the current work file
Outputs the command buffer of the EDT
Outputs areas of a work file or character sequence variable via printer
Output of lines and information
Comparing work files
Outputs a list of files from the BS2000 catalog as a work file
Compares two work files completely or partially and outputs the results in a work file
Creating a line: You can create a line with the content given by using the CREATE command. In this example we create a fourth line and then link up the content with an additional text.
Character sequences as prefixes: You can use the PREFIX command to place a character sequence before the area specified. In this example text is prefixed before lines 2 and 3 and then the content of line 4 is indented to the right by using five blanks.
Inserting text: This example shows how to change the content of existing lines in a work file by using the COLUMN command. In our case we want to insert the word “world” (along with a blank) in column 15 of line 1.
Reading, editing and rewriting a file: The following example illustrates how easy it is to start the EDT. We use the READ command to read a file into work file 0. We use "+" to page forward and set the data window to “overwrite” by using the function key F2. We then go to Baby Lotion in line 27 and enter 100 in the “Ordered” box and then rewrite the file using the WRITE command. Since the existing file will be overwritten, the EDT asks us whether the file should really be overwritten. We confirm this with Y in the command line, send this off via the DUE key and then close the EDT with the command @HALT.
The marking column is used for short commands
Unicode Mode supports only one character set for all work files
In F-Mode input can be displayed across the entire screen
The EDT work window is comprised of five work sections
EDT short commands
Short commands can only be entered in F-Mode
Short commands cannot be combined
Short commands are letter sequences that can have various lengths
The short command C is used to delete lines
Im Line-Modus (L-Modus) werden Daten und Anweisungen ausschließlich in einer Zeile, der Anweisungszeile, eingegeben.
Commands in the command lineShort commands in the marking columnCommands in the data windowMarking data setsFunction keys
In Full-Screen Mode (F-Mode) the entire screen can be used for data and command input.
Full-Screen Mode (F-Mode)Line Mode (L-Mode)
The EDT has two work modes for processing data:
Anweisungen haben als erstes Zeichen ein Anweisungssymbol
(standardmäßig @)Dateneingaben werden in die jeweils aktuelle Zeile geschriebenSoll bei einer Dateneingabe das erste Zeichen ein @ sein, gibt man zwei @-Zeichen aufeinanderfolgend ein
Since it is the mode most widely used, only the
F-Mode will be discussed in this WBT.
Im L-Modus erfolgt die Dateibearbeitung zeilenorientiert. Datensätze und Anweisungen werden in der Anweisungszeile geschrieben. Es stehen in diesem Modus einige Funktionen zur Verfügung, die der F-Modus nicht bietet. Eingaben werden im L-Modus wie folgt voneinander unterschieden:
In Full-Screen Mode (F-Mode) the entire screen can be used for data and command input for up to 23 work files. Data can be overwritten without limits, and texts can be added or deleted. You can perform file editing in the following ways: