ArticleslgStudy

computer science

XEDIT

XEDIT is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand XEDIT rather than just read about it. In short: XEDIT is a visual editor for VM/CMS, primarily using block mode IBM 3270 terminals. It also works on line-mode terminals.

XEDIT — main illustration
XEDIT — illustration

Key takeaways

  • XEDIT belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect XEDIT to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of XEDIT from memory before moving on to harder problems.

Reference excerpt

XEDIT is a visual editor for VM/CMS, primarily using block mode IBM 3270 terminals. It also works on line-mode terminals.

XEDIT is much more line-oriented than modern PC and Unix editors. For example, XEDIT provides automatic line numbers, and many of the commands operate on blocks of lines. A pair of features allows selective line and column editing. The ALL command, for example, hides all lines not matching the described pattern, and the COL (Column) command allows hiding those columns not specified. Hence changing, for example, the word NO as it appears only in columns 24 thru 28, to YES, and only on lines with the word FLEXIBLE, is doable. Another feature is a command line which allows the user to type arbitrary editor commands. Because IBM 3270 terminals do not transmit data to the computer until certain special keys are pressed [such as ↵ Enter, a program function key (PFK), or a program access key (PAK), XEDIT is less interactive than many PC and Unix editors. For example, continuous spell-checking as the user types is problematic.

Typical screen layout

Notable features of the screen layout:

The top line provides details about line format where: MOHICANS is the filename SCRIPT is the filetype A1 is the filemode (default, indicating which disk the file is on) V is the record format (RECFM) which can be Fixed or Variable 132 is the length of the records (for V, maximum length is 65535) Trunc=132 indicates changes beyond 132 columns will be ignored Size=10 denotes total number of lines in file Line=10 denotes the current line Col=1 denotes the current column Alt=10 indicates that ten changes have been made while XEDITing The equal signs ===== at the beginning of the lines provide space for line numbers if desired, and a place to enter XEDIT prefix commands that may operate on blocks of lines. The line beginning |...+ is a ruler that e.g. might show tabulator positions. The following line marks end-of-file, appearing in XEDIT as if it followed the last actual line of the file. The next-to-bottom line showing ====> is a command line for entering XEDIT or system (CP/CMS) commands or macros. There is no mouse pointer because most IBM 3270 terminals did not have mice. Most IBM 3270 terminals had 12 or 24 program function keys (PFKs) (and also two or three program assist keys), to which XEDIT commands or macros could be assigned. XEDIT commands can be used to change the screen appearance. Some examples include: Moving the position of (or eliminating) the command line Moving the position of (or eliminating) the TABS marker line Moving the position of (or eliminating) the PREFIX lines Changing the prefix line from equal signs (=====) to line numbers (nnnnn) Defining whether or not TAB characters are to be expanded Defining which lines are to be displayed by scope (SELECT) Showing the data on a display screen or in typewriter mode Specifying text line(s) to be displayed on the screen (RESERVED) Eliminating the TOFEOF lines (* * * Top of File * * * —and— * * * End of File * * *) Displaying (or eliminating) SHADOW lines (indications that lines are not being displayed) Displaying (or eliminating) the SCALE line (a scale or ruler to assist editing) Changing the background and foreground colors used for the different portions of the screen Defining what lines are to be displayed (RANGE) Defining what columns are to be displayed (and also, if in hexadecimal, text, or both) Defining multiple XEDIT screens [sizes, location (over/under, side by side, combinations)]

Macro language XEDIT macros (scripts) can be written in Rexx, ooRexx, EXEC 2, or EXEC. XEDIT exposes the majority of its internal state to the macro environment, allowing macros to easily read and set internal variables that control its operation.

KEXX KEDIT 5 for DOS and OS/2 supports an external Rexx interpreter (native OS/2 Rexx or Quercus Rexx, for DOS only Quercus Rexx replacing the older Mansfield Rexx) and its own rather limited KEXX subset. KEDITW 1.6.1 for Windows supports only its own internal KEXX 5.62 version of the Rexx language. Macros can be arranged in the .kml file format.

History XEDIT was written by IBM employee Xavier de Lamberterie and was first released in 1980. Its predecessor was EDIT SP (SP is an initialism for System Product used by IBM). Other key influences were EDIT, the older editor for CMS, and EDGAR, an IBM Program Product editor for CMS. XEDIT supported many of the EDGAR commands, SOS (Screen Output Simulation) being a major one. XEDIT also supported EXEC 2, the predecessor of Rexx.

PC and Unix adaptations

When PCs and Unix computers began to supplant IBM 3270 terminals, some users wanted text editors that resembled the XEDIT they were accustomed to. To fill this need, several developers provided similar programs:

KEDIT

KEDIT, by Mansfield Software Group, was the first XEDIT clone. Although originally released in 1983, the first major release was version 3.53 for MS-DOS, released in 1985. By 1990, KEDIT 4.0 had a version supporting OS/2, and included the ALL command. The last version for MS-DOS and OS/2 was KEDIT 5.0p4. KeditW (for Windows) is at version 1.6.1 dated December 2012. Some earlier Windows versions were:

Release 1.5 service level 3, dated January 1998 Version 1.6, dated December 2007 KEDIT 1.6 supports syntax highlighting for various languages including C#, COBOL, FORTRAN, HTML, Java, Pascal, and xBase defined in the .kld file format. KEDIT supports a built-in Rexx-subset called KEXX. Mansfield Software created the first non-IBM implementation of Rexx (Personal Rexx) in 1985. In December 2012 Mansfield Software released 1.6.1 to provide compatibility with Windows 8 and extended support to at least June 2015. These 32bit versions work also in the 64bit versions of Windows 7 and Vista, but do not directly support Unicode. As of December 2022, Kedit supports Windows 10 and 11 too, and Mansfield promises email support until at least June 2024.

SEDIT SEDIT (first released in 1989) is another implementation on both Windows and Unix, which supports a variant of Rexx language called S/REXX (announced in 1994).

THE (The Hessling Editor)

… excerpt ends here. Continue reading the full article.

Illustrations

XEDIT: An Informatics General computer programmer using XEDIT on an IBM 3279 terminal
An Informatics General computer programmer using XEDIT on an IBM 3279 terminal
XEDIT: An early version of XEDIT from 1982, as displayed on a 3270 terminal emulator.
An early version of XEDIT from 1982, as displayed on a 3270 terminal emulator.
XEDIT: XEDIT in "input mode," waiting for the user to input more text.
XEDIT in "input mode," waiting for the user to input more text.
XEDIT: Keditw 1.6.1 screenshot
Keditw 1.6.1 screenshot
XEDIT: Twin session
Twin session

Worked examples

Example 1 — a first encounter with XEDIT

Start with the simplest possible case. Write down what XEDIT claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to XEDIT before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about XEDIT ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of XEDIT

In research
XEDIT appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses XEDIT in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
XEDIT is common in secondary-school and first-year university syllabi. It links to neighbouring topics Command shells, IBM mainframe software, IBM software, so understanding it makes those chapters shorter.
In everyday life
Look for XEDIT outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “XEDIT” →

How to study XEDIT in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what XEDIT means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain XEDIT out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is XEDIT in simple terms?

XEDIT is a visual editor for VM/CMS, primarily using block mode IBM 3270 terminals. It also works on line-mode terminals.

Why does XEDIT matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study XEDIT?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on XEDIT.

Tags

  • Command shells
  • IBM mainframe software
  • IBM software
  • Rexx
  • Text editors
  • VM (operating system)

Keep exploring