Xeditref
Xeditref
UNIVERSITY OF KENTUCKY
COMPUTING CENTER
XEDIT Reference
VM/SP Release 3
UU U KK K CCCC CCCC
UU U KK K CC CC
UU U KKK CC CC
UU U KK K CC CC
UUU KK K CCCC CCCC
University of Kentucky
Computing Center
72 McVey Hall
Lexington, KY 40506-0045
Phone: 606/257-2900
XEDIT Reference
CONTENTS
Section 1. Introduction . . . . . . . . . . . . . . . . . . . . . 1
Section 2. Reference . . . . . . . . . . . . . . . . . . . . . . . 2
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Contents ii
XEDIT Reference
Section 1: Introduction
Section 1: Introduction 1
XEDIT Reference
Section 2: Reference
Use the XEDIT command to invoke the System Product Editor to create,
examine, and modify CMS disk files. XEDIT can also be used to examine
OS disk data sets and can be used to copy them to CMS disk files.
Once XEDIT has been invoked, the XEDIT environment is entered and
XEDIT subcommands and macros, CP commands, and CMS commands and EXEC's
can be entered. XEDIT is the editor used by the PEEK, NOTE, OSXEDIT,
and RXEDIT commands.
| Return control to the CMS environment with the CANCEL, QUIT, QQUIT,
| FILE, or FFILE subcommands.
+--------------------------------------------------------------------+
| | |
| Xedit | [fn [ft [fm]]] [(options... [)]] |
| | |
| | Options: |
| | |
| | [Width n] [NOSCreen] + + |
| | |PROFile macroname| |
| | [NOCLear] |NOPROFile | |
| | + + |
| | | [NOMsg] |
| | |
| | UPDATE Mode Options: |
| | |
| | + + + + + + |
| | |Update | |Seq8 | |Ctl cntrlname| |
| | |NOUpdate| |NOSeq8| |NOCtl | |
| | + + + + + + |
| | |
| | | [Merge] [Incr n] [SIDcode string] [UNtil filetype] |
| | |
+--------------------------------------------------------------------+
where
Section 2: Reference 2
XEDIT Reference
Options
Ctl cntrlname
controls the XEDIT multi-level update facility. Use of the
CTL option implies the UPDATE and SEQ8 options. Consult the
description of the CMS UPDATE command in the VM/SP CMS
Command and Macro Reference for details.
Merge specifies that all the updates made using the control file
and all the changes made while editing will be merged and
written into the most recent update file. This option
implies the UPDATE option.
PROFile macroname
specifies the name of the XEDIT profile. The profile is an
XEDIT macro (filetype must be XEDIT) executed each time the
XEDIT command or subcommand is issued. It can be used to
Section 2: Reference 3
XEDIT Reference
SIDcode string
specifies an identifier used to mark all new or changed
lines in an update file. The string is placed in columns 64
through 71 (padded on the right with blanks to a length of
eight), overlaying any other data in these columns, unless
column 72 contains a non-blank character. This option
implies the UPDATE option.
| UNtil filetype
| specifies the filetype of the last update to be applied.
| The filetype cannot be that of an UPDATE AUX file. This
| option implies the UPDATE option.
Width n sets the maximum length used to store one record from the
file. The WIDTH may also be specified with the LOAD
subcommand in an XEDIT profile. If no value is specified,
the default is either the actual record length of the file,
or the default record length for the filetype, whichever is
larger. The WIDTH is used to set the default values for
LRECL and TRUNC. Specifying a width less than the actual
record length of an existing file can cause records to be
truncated.
XEDIT supports all terminal types supported by CMS. When used from a
3270-type display terminal it will operate in DISPLAY mode. On other
types of terminals it will operate in TYPEWRITER (line) mode.
Typewriter mode can be forced on a 3270-type terminal with the
NOSCREEN option or the SET TERMINAL subcommand. This may be desirable
on a remote 3270-type terminal when the line transmission rate is low.
Some XEDIT subcommands will function only in display mode.
Section 2: Reference 4
XEDIT Reference
When operating in display mode, XEDIT will control the format of the
screen. The display screen will appear as follows:
+-----------------------------------------------------+
| fn ft fm V 80 TRUNC=n SIZE=n LINE=n COLUMN=n ALT=n |<--File Id Line
| |<--Message Line
|===== * * * TOP OF FILE * * * |
|===== |
|===== |
|===== |<--Current Line
| |...+....1....+....2... ... ...6....+....7..> |<--Scale
|===== |
|===== |
|===== * * * END OF FILE * * * |
| |
|===> |<--Command Line
| X E D I T 1 FILE |<--Status Area
+-----------------------------------------------------+
| | | |
+---+ +---------------------------------------------+
| |
Prefix Area File Area
Following the File Id Line is the Message Line. This line is used to
display XEDIT error and informational messages. You can't type on
this line either.
Following the Message Line is the File Area. The lines in this area
are used to display and enter data. You may type directly in this
area to enter new lines or modify existing lines. One line in the
File Area is designated the Current Line. This line appears in the
middle of the screen and will be highlighted to make it easy to find.
Many XEDIT subcommands perform their functions on the current line or
on a group of lines beginning with the current line.
Section 2: Reference 5
XEDIT Reference
The Status Area is on the right at the bottom of the screen, following
the Command Line. The Status Area indicates the current operating
mode (XEDIT, COPY/MOVE PENDING, BLOCK INCOMPLETE, INPUT-MODE, UPDATE-
MODE, or MACRO-READ) and the number of files currently being edited.
The SET CMDLINE subcommand can be used to remove the Status Area from
the display.
The Scale Line appears under the current line and indicates the column
numbers, the position of the column pointer (marked "|"), the left and
right zone columns (marked "<" and ">"), and the truncation column
(marked "T"). The Scale Line can be repositioned on the screen (or
removed entirely) with the SET SCALE subcommand.
CLEAR will clear the screen and cause the display to be rebuilt as
it was after the last time ENTER or a PF key was pressed.
CLEAR also clears the CMS stack.
ERASE INPUT
will erase everything in the input and command areas.
ERASE EOF will erase everything from the cursor to the end of the
line. In power or long input mode ERASE EOF will erase
everything from the cursor to the end of the screen.
ENTER causes XEDIT to read the screen and analyze its contents.
PA2 will have the effect of setting nulls on for the line that
contains the cursor. This allows insert mode (see INS MODE
below) to be used on the line.
Cursor Movement
Section 2: Reference 6
XEDIT Reference
INS MODE places the terminal in insert mode. This causes typed
characters to be inserted at the cursor position and shifts
other characters on the line to the right. To use insert
mode on a data line requires that SET NULLS ON be in effect,
or that PA2 be pressed while the cursor is on the line. To
leave insert mode, press RESET. You should not use INS MODE
while in long input mode.
DEL will delete the character at the cursor position and shift
any following characters to the left. You should not use
DEL while in long input mode.
RESET will reset insert mode and error conditions. You should not
use this key to reset an "INPUT INHIBITED" condition caused
by slow system response time. This can confuse XEDIT and
may cause loss of data.
FIELD MARK
will enter a unique character (hexadecimal 1E, an EBCDIC
Record Separator). A FIELD MARK will appear on most screens
as either ";" or a right-arrow. FIELD MARK is entered as a
shifted PA2.
Section 2: Reference 7
XEDIT Reference
XEDIT Subcommands
XEDIT has two types of subcommands: subcommands entered on the Command
Line and those entered in Prefix Areas. Those entered on the command
line are generally called subcommands, while those entered in Prefix
Areas are known as prefix subcommands. The Command Line may also be
| used to enter XEDIT macros, CP commands, and CMS commands and EXEC's.
| XEDIT macros are REXX or EXEC 2 files with a filetype of "XEDIT."
| These can be used to combine XEDIT subcommands and macros, CP
commands, CMS commands and EXEC's, and EXEC functions to create new
functions. Macros are executed by entering their name on the Command
Line just like a subcommand.
When the ENTER key or a PF key is pressed, XEDIT will read and process
the screen. Processing proceeds in the following order:
Section 2: Reference 8
XEDIT Reference
XEDIT also makes use of a column pointer and column targets, which are
similar in some respects to the current line and targets. Column
pointer movement is controlled and used by a set of special column-
oriented subcommands (CLOCATE, CINSERT, CDELETE, etc.). In display
mode the current line and column pointer is indicated in the header
line and the scale line. On other types of terminals the column
pointer position is marked by underscoring. Column-targets may be
absolute or relative column numbers, or string expressions. Use -* to
refer to the left zone column and * or +* to refer to the right zone
column.
The following describes the XEDIT subcommands and supplied macros.
Default parameter values are listed immediately following the general
form.
&[command]
causes the specified command to be retained in the input
area on a 3270-type terminal. The command may be repeated
by pressing ENTER.
= [command]
repeats the execution of the last command entered for this
file, or executes a specified command and then repeats the
last command. The = buffer may be changed with the SET =
subcommand.
Section 2: Reference 9
XEDIT Reference
Add [n] adds lines after the current line. The number of lines
added is specified by "n." The default is one line. ADD is
allowed only in display mode.
ALL target
displays the target lines and excludes all others. ALL is a
macro.
BAckward [n]
scrolls backward (toward the top of the file) the indicated
number of screens. The default is one screen.
Bottom makes the last data line of the file or range the new
current line.
BURN erases the current file from disk and issues a QUIT
subcommand. If you are using RXEDIT to edit a reader spool
file the spool file is purged. This will completely destroy
the file you are editing. BURN is a macro.
CAPPEND [text]
appends the specified text to the end of the current line.
The column pointer is moved to the first appended character,
or the first trailing blank if no text is given. CAPPEND is
a macro.
Section 2: Reference 10
XEDIT Reference
string1 is limited by the current ZONE columns, but the
| change may affect data from the left ZONE column to the
| TRUNC column. SET SPILL controls what happens to characters
| pushed past the TRUNC column. SET STAY controls current
line positioning after multiple line changes. SET VERIFY ON
causes all changed lines to be displayed. The strings may
make use of the ARBCHAR. SPAN and VARBLANK settings are
ignored.
CINSERT text
inserts text immediately before the column pointer in the
current line.
CLocate column-target
makes the column specified by the column target the column
pointer value. Searching begins at the column pointer
position in the current line. If SET STREAM ON (the initial
setting) is in effect searching continues beyond the current
line.
CMS [text]
will pass "text" to CMS as a command. If "text" is not
specified CMS subset mode is entered. Use the RETURN
command to return to XEDIT.
CMSG [text]
puts a message on the command line of a 3270-type terminal.
CMSG is intended for use in macros.
COMMAND [text]
executes "text" as an XEDIT subcommand, without checking for
synonyms or macros. If "text" is not an XEDIT subcommand,
and SET IMPCMSCP is ON, it is passed to CMS or CP as a
command. The & and ? subcommands cannot be used.
COMPRESS [target|1]
replaces blank (or FILLER) characters immediately preceding
the current tab columns with a single tab character. The
SET TABS and EXPAND subcommands are used to align the
compressed text to new columns.
COUnt /string[/target|1]
counts the occurrences of "string," beginning with the
current line and ending before the target. The count is the
number of strings that would be affected by a CHANGE
subcommand specifying the same string.
Section 2: Reference 11
XEDIT Reference
COVerlay text
overlays the current line (starting at the column pointer)
with the non-blank characters in "text." Use underscores in
"text" to force blanks on the current line.
CReplace text
replaces the characters in the current line (starting at the
column pointer) with the "text." This is similar to
COVERLAY, except blanks and underscores have no special
significance.
Down [n|1|*]
advances the current line "n" lines toward the end of the
file.
EXPAND [target|1]
replaces tab characters in the specified lines with blanks
(or the SET FILLER character) to align to the current tab
columns. EXPAND can be used in conjunction with COMPRESS
and SET TABS to realign tables and other text.
Section 2: Reference 12
XEDIT Reference
EXPLAIN displays the HELP information for the most recently issued
XEDIT error message. For EXPLAIN to work properly, CP SET
EMSG must be ON before the error occurs. This can be done
automatically with a CP SET EMSG ON command in your PROFILE
EXEC or XEDIT PROFILE. EXPLAIN is a macro.
| EXTract /operand[/operands...
| returns information to an EXEC or XEDIT macro by setting
| variables in the EXEC or macro. EXTRACT can obtain
| information not obtainable with TRANSFER. Refer to the
| XEDIT Reference or online HELP for more information.
| FFile is a synonym for COMMAND FILE. See FILE and PFILE for more
| information.
Find text searches forward from the line following the current line
for a line beginning with "text." Columns containing blanks
in "text" are not checked; columns containing underscores
are matched for blanks. The search starts at the first tab
position in each line. The first line containing "text"
becomes the current line. SET WRAP controls wraparound from
the bottom of the file.
FINDUp text
FUp is similar to FIND, but searches up (toward the top of the
file), rather than down.
FOrward [n|1|*]
scrolls toward the end of the file the specified number of
screens. FORWARD is allowed only in display mode.
Section 2: Reference 13
XEDIT Reference
inserts lines after the current line. The lines come from
the PUT/PUTD buffer, or a specified CMS file. When a CMS
fileid is specified, "f" (the first record to be read) and
"n" (the number of records to be read) may also be
specified. The new records are truncated or filled to the
required record length. Packed files are not unpacked.
HELP [MENU|topic]
displays information about XEDIT subcommands and macros.
The "topic" may not use abbreviations. MENU displays a list
of all XEDIT subcommands and macros. The "topic" can also
be anything accepted by the CMS HELP command.
HEXTYPE [target|1]
displays lines beginning with the current line and ending
before the target in both hexadecimal and character form.
HEXTYPE is a macro.
INLong enters long input mode. In this mode you can enter data
lines as wide as the display screen (or to the current
truncation column, whichever is shorter). Each line on the
screen is entered into the file as a data line. Pressing
the ENTER key causes the lines to be entered and a new input
screen to be displayed. Pressing the ENTER key with no new
data on the screen terminates input mode. The last line
entered becomes the current line. The current line and the
SCALE and TABLINE indicators are displayed at the top of the
screen in protected form. The remaining lines on the screen
can be used for input. Each input line contains the current
SET MASK data (initially all blank). VERIFY is forced to
begin with column one and end at the truncation column or
the end of the screen line. The normal operation of the
Program Function (PF) keys and PA2 key are suspended; these
keys are ignored with the exception of PF keys set to
TABKEY, SOS TABF, or SOS TABB. The multiple tab features of
SOS TABF and TABB are not supported. Tabbing beyond the
last tab column moves the cursor to the first tab column of
the next line. Backward tabbing will not move to the left
of the first tab column. The LINEND character is treated as
a normal data character. XEDIT SET CASE and CMS SET INPUT
translations are made. Use the insert (INS MODE) and delete
(DEL) keys with care; the entire screen is one long field
and inserting or deleting characters causes the input data
to become aligned to other than the normal line boundaries.
INLONG is allowed only in display mode.
Input [text]
enters new lines into a file after the current line. If
"text" is specified, one line containing "text" is inserted;
otherwise, XEDIT enters input mode and new lines may be
| entered. Only data typed within the VERIFY columns is
| accepted. In display mode, press ENTER once for a new input
screen, twice to return to edit mode. In typewriter mode,
Section 2: Reference 14
XEDIT Reference
LEft [n|1]
changes the columns displayed so that data to the left of
the first column on the screen is visible. The data appears
| to move to the right. See also RGTLEFT.
LOWercas [target|1]
Section 2: Reference 15
XEDIT Reference
| LPrefix text
| executes "text" as a prefix subcommand on the current line.
| This can be used in display or typewriter mode.
MACRO [text]
executes "text" as an XEDIT macro, without checking for
synonyms or subcommands.
MODify keyword
displays a subcommand and its current setting on the command
line where it can be modified (if desired) and entered.
MODIFY is allowed only in display mode. Refer to the XEDIT
Reference or online HELP for a list of valid keywords.
MSG [text]
displays a message. MSG is intended for use in macros.
NFind text
searches forward from the line following the current line
for a line not beginning with "text". Columns containing
blanks in "text" are not checked; columns containing
underscores are matched for blanks. Searching begins at the
first tab position in each line. The first line not
containing "text" becomes the current line. SET WRAP
controls wraparound from the bottom of the file.
NFINDUp text
NFUp is similar to NFIND, but searching is up (toward the top of
the file), rather than down.
Overlay text
overlays the current line with "text." Blanks in the text
do not change existing characters, and underscores in the
text cause blanks to be placed in the current line.
Section 2: Reference 16
XEDIT Reference
PQUIT [n] terminates editing of the current file and returns control
to CMS if there is only one file being edited. If the file
has been altered you will be prompted to enter QQUIT. The
optional argument is a return code for use with macros. By
default, QUIT is a synonym of PQUIT.
| PURge macroname
purges the current copy of the named macro from storage.
Section 2: Reference 17
XEDIT Reference
QQUIT [n] terminates editing of the current file and ends XEDIT if
only one file is being edited. The optional argument is a
| return code for use with macros. By default, QQUIT is a
| synonym for COMMAND QUIT, and QUIT is a synonym for PQUIT.
Query keyword
| displays the current value of the specified XEDIT setting.
| Use EXTRACT (or TRANSFER) to obtain these values in an EXEC
| or macro. Refer to the XEDIT Reference or online HELP for a
| list of keywords.
QUIT [n] terminates editing of the current file and ends XEDIT if
there is only one file being edited. The optional argument
| is a return code for use with macros. By default, QUIT is a
| synonym for COMMAND PQUIT, and QQUIT is a synonym for
COMMAND QUIT. PQUIT also clears the stack.
RBLANK target
changes all multiple blanks to single blanks, beginning with
the current line and ending before the target.
| Cmdline
| READ All [Number] [Tag|Notag]
| Nochange [Number]
stacks the specified information. CMDLINE (the default)
stacks the command input area. ALL stacks all changed lines
on the screen, followed by the CMDLINE. NOCHANGE is similar
to ALL, but the changes on the screen are not made to the
file. The NUMBER operand causes stacked lines to be
prefixed with their file line number. Specifying TAG causes
| each line to include additional information. READ is
| intended for use in macros. Refer to the XEDIT Reference or
| online HELP for more information.
| RECover [n|1|*]
recovers lines deleted by DELETE, MERGE, or PUTD. The
recovered lines are inserted before the current line. All
deleted lines (within the limits of available storage) are
saved in one buffer and are moved from this buffer by the
| RECOVER subcommand. RECOVER usually can't be used in UPDATE
| mode.
Section 2: Reference 18
XEDIT Reference
REPEat [target|1]
will advance the current line and repeat the last command.
REPEAT is equivalent to entering =UP or =DOWN until the
| target is reached, or a non-zero return code occurs.
Replace [text]
replaces the current line with "text," or deletes the
current line and enters input mode.
| RGTLEFT [n]
| changes the view columns to display data currently not
| visible on the screen. You can specify the number of
| columns to move. SET VERSHIFT controls the direction of the
| shift. RGTLEFT is a macro and is allowed only in display
| mode.
RIght [n] changes the columns displayed so that data to the right of
the last column on the screen is visible. The data will
| appear to move to the left. See also RGTLEFT.
SCHANGE [pfkey]
locates and selectively changes occurrences of a specified
string. SCHANGE can only be used in display mode and only
from a Program Function key. To use SCHANGE, place a CHANGE
or CLOCATE subcommand in the command area and press the
SCHANGE PF key instead of ENTER. The cursor is placed under
the specified string (if found). Pressing the PF key again
will move the cursor to the next occurrence of the string.
Pressing the key indicated by "pfkey" on the SCHANGE command
will execute the CHANGE subcommand. Searching begins with
| the current line and column pointer. If you press the
| SCHANGE PF key without a CHANGE subcommand on the command
Section 2: Reference 19
XEDIT Reference
SET = text
sets the command reuse (=) buffer. This is intended for use
in macros.
Section 2: Reference 20
XEDIT Reference
Section 2: Reference 21
XEDIT Reference
[SET] FMode fm
FName fn
FType ft
changes the current fileid. The new fileid is used by the
SAVE and FILE subcommands. A copy of the file already on
disk with the old name is not affected. No warning is given
if a file with the new fileid already exists on disk.
Section 2: Reference 22
XEDIT Reference
[SET] LRecl n
changes the current logical record (line) length. The value
cannot exceed the WIDTH option value. For files with
variable-length records, the LRECL is the maximum line
length. For files with fixed-length records, the LRECL is
the length of all lines. Setting an LRECL value less than
the current value may cause the settings of TRUNC and ZONE
to be reduced and can cause truncation of existing data.
The initial setting depends on the filetype.
Section 2: Reference 23
XEDIT Reference
Section 2: Reference 24
XEDIT Reference
Section 2: Reference 25
XEDIT Reference
Section 2: Reference 26
XEDIT Reference
[SET] SYNonym ON
| OFF
| [LINEND char] syn [n] cmd
| [LINEND char] syn [n [form...] cmd [parms...]]
both controls searching for subcommand synonyms and defines
synonyms. SYNONYM OFF disables synonyms. Refer to the
XEDIT Reference or online HELP for details. The initial
setting is SYNONYM ON.
Section 2: Reference 27
XEDIT Reference
Section 2: Reference 28
XEDIT Reference
SOS operands
provides screen operation simulation that can be used from a
macro or PF key. Refer to the XEDIT Reference or online
HELP for details.
SPELL [word]
checks the spelling of a word. If no word is specified on
the command line, the word beginning at the cursor position
| is used (in display mode). SPELL displays a list of
| alternative spellings. SPELL is a macro and uses the
SPELLCHK command.
SPELLFIX checks the spelling in the current file. The file is first
saved on disk (using SAVE) and then each error detected is
indicated for correction. The SPELLFIX subcommand operates
in the same manner as the CMS command SPELLFIX. SPELLFIX is
a macro, and is allowed only in display mode
Section 2: Reference 29
XEDIT Reference
| SSave is a synonym for COMMAND SAVE. See SAVE and PSAVE for more
| information.
STATus [filename]
displays some SET subcommand settings, or creates a macro
named "filename" that will contain the SET subcommands and
| their values. Not all settings are included.
TOP makes a null line preceding the first data line in the file
(or range) the current line. TOP does not alter the column
pointer position.
TRAnsfer keyword...
| is used within a macro to stack the values of specified
| XEDIT variables. EXTRACT should be used instead of TRANSFER
| for new applications. Refer to the XEDIT Reference or
| online HELP for details.
Type [target|1]
displays data lines beginning with the current line and
ending before the target line. The format of the data is
determined by the SET VERIFY subcommand. The last line
| displayed becomes the current line. Typed output is limited
| to 160 columns.
Up [n|*|1]
advances the current line "n" lines toward the top of the
file.
UPPercas [target|1]
converts lowercase to uppercase beginning with the current
line and ending before the target line. The last line
converted becomes the current line.
Section 2: Reference 30
XEDIT Reference
[n]/ or /[n]
marks the line to become the next current line. The column
pointer may be set by specifying "n".
[n]A or A[n]
marks the line after which one or more new lines are to be
added.
[n]C or C[n] or CC
marks one or more lines to be copied. Specifying "n" will
cause "n" lines to be copied. CC is used to mark the first
and last lines of a block of lines to be copied. The
Section 2: Reference 31
XEDIT Reference
[n]D or D[n] or DD
marks one or more lines to be deleted. Specifying "n" will
cause "n" lines to be deleted. DD is used to mark the first
and last lines of a block of lines to be deleted.
[n]I or I[n]
inserts new lines into the file. The I prefix subcommand
has the same function as the A prefix subcommand.
[n]M or M[n] or MM
marks one or more lines to be moved. Specifying "n" will
cause "n" lines to be moved. MM is used to mark the first
and last lines of a block of lines to be moved. The
destination line is marked with the F (following) or P
(preceding) prefix subcommand. The original lines are
deleted.
| [n]S or S[n]
| (show) causes the specified lines to be displayed after
| having been excluded by the X prefix macro, ALL macro, SET
| DISPLAY subcommand, or SET SELECT subcommand. The S prefix
| macro can only be used in the prefix area of a shadow line.
| [n]X or X[n] or XX
| excludes the indicated lines from the display and the scope
| of editing subcommands.
Section 2: Reference 32
XEDIT Reference
and macros. These statements and commands can be used to tailor the
XEDIT environment to your requirements. For example, Program Function
keys can be defined, the screen layout altered, the file format set,
and so on.
The arguments passed to the profile macro are the arguments that were
specified on the XEDIT command or subcommand. Additional operands
(including the fileid) and options may be specified by the profile
with the LOAD subcommand. The LOAD subcommand must be the first XEDIT
subcommand issued by the profile.
| address xedit
| "COMMAND LOAD" fn ft fm
| if rc¬=0 then exit rc
| /* Common Setup */
| "COMMAND EXTRACT/TERMINAL/"
| if terminal.1¬="DISPLAY" then exit
Section 2: Reference 33
XEDIT Reference
This file is available as "SAMPLE XEDIT Y2" for use as a base for your
own profile.
Usage Notes
If the system should fail during a session, the most recent copy
| of the file being edited will be the file named "rrrnnnnn
| AUTOSAVE". You may edit this file to determine if it contains
information that you want; if it does, you can replace the older
version of the file with the AUTOSAVE file by erasing the
original file and renaming the AUTOSAVE file. This can also be
used to recover from erroneous global changes made to a file.
Immediately QUIT, erase the original file, and rename the
AUTOSAVE file.
Section 2: Reference 34
XEDIT Reference
6. XEDIT may be used to examine an OS disk data set. The data set
cannot be modified, but it can be saved as a CMS disk file, with
or without modifications. To edit an OS data set you must first
access the OS disk volumes and then define a name to be used by
XEDIT to refer to the file. The following commands could be
used:
OSDISKS
FILEDEF SYSIN DISK filename filetype H DSN data set name (options
XEDIT filename filetype H
7. XEDIT has a feature that allows you to create your own XEDIT
subcommands by combining existing commands and subcommands into
XEDIT macros. A macro is a file with a filetype of "XEDIT" and
| is very similar to an EXEC (REXX and EXEC 2 are used by XEDIT to
| process macros). Refer to the VM/SP System Product Editor User's
Guide, the VM/SP System Product Editor Command and Macro
| Reference, the VM/SP System Product Interpreter Reference, and
| the VM/SP EXEC 2 Reference for more information.
Section 2: Reference 35
XEDIT Reference
0 Normal.
1 Error. Meaning depends on subcommand.
2 Target not found.
3 Operand is valid only in display mode, or other error.
4 Error. Meaning depends on subcommand.
5 Missing or invalid operand.
| 6 Rejected in profile due to LOAD error, or QUIT subcommand
| issued in macro called from last file being edited.
7 Error building update file.
8 Pending or incomplete prefix subcommand.
12 Disk is read-only.
13 Disk is full.
20 Invalid character in fileid.
24 Invalid filemode, or invalid parameter.
28 File not found.
32 Error during update.
36 Disk not accessed.
88 File too large to fit in storage.
100 Error writing file to disk.
104 No storage available.
Details on return codes and messages may be found in the VM/SP System
Product Editor Command and Macro Reference and VM/SP System Messages
and Codes.
Section 2: Reference 36
XEDIT Reference
Use the XEDIT profile to alter these settings. Note: The "Format"
column lists the RECFM and WIDTH; the LRECL defaults to the WIDTH.
+--------------------------------------------------------------------+
|Filetype|Format|TRUNC|SPILL|CASE|SERIAL|SET TABS Columns |
|--------|------|-----|-----|----|------|----------------------------|
| |$EXEC | F 80 | 72 | OFF | U R| ON |2 5 10 15 20 25 30 35 |
| |$XEDIT | F 80 | 72 | OFF | U R| ON |2 5 10 15 20 25 30 35 |
|AMSERV | F 80 | 72 | OFF | U R| ON |2 5 10 15 20 25 30 35 |
| | | | | | |40 45 50 55 60 |
|ASM3705 | F 80 | 72 | OFF | U R| ON |1 10 16 30 35 40 45 50 |
| | | | | | |55 60 65 70 |
|ASSEMBLE| F 80 | 72 | OFF | U R| ON |1 10 16 30 35 40 45 50 |
| | | | | | |55 60 64 72 |
|BASDATA | F 80 | 80 | OFF | U R| OFF |see BASIC |
|BASIC | F 80 | 80 | OFF | U R| OFF |7 10 15 20 25 30 80 |
| |BATCH | V 80 | 72 | OFF | U R| OFF |see DIRECT |
|CNTRL | F 80 | 80 | OFF | U R| OFF |1 5 8 17 27 31 |
|COBOL | F 80 | 72 | OFF | U R| ON |1 8 12 20 28 36 44 68 |
| | | | | | |72 80 |
|COPY | F 80 | 72 | OFF | U R| ON |see ASSEMBLE |
|DIRECT | F 80 | 72 | OFF | U R| ON |1 5 10 15 20 25 30 35 |
| | | | | | |40 45 50 55 60 65 70 |
|ESERV | F 80 | 71 | OFF | U R| ON |see AMSERV |
|EXEC | V 80 | 80 | OFF | U R| OFF |1 5 10 15 20 25 30 35 |
| | | | | | |40 45 50 55 60 65 70 |
|FORTRAN | F 80 | 72 | OFF | U R| ON |1 7 10 15 20 25 30 80 |
|FREEFORT| V 81 | 81 | OFF | U R| OFF |9 15 18 23 28 33 38 81 |
|JCL | V 80 | 80 | OFF | U R| OFF |1 3 12 16 18 72 80 |
|JOB | V 80 | 80 | OFF | U R| OFF |see JCL |
|LISTING | V 121| 121 | OFF | M R| OFF |1 5 10 15 20 25 30 35 |
| | | | | | |40 45 50 55 60 65 70 |
| | | | | | |75 80 85 90 95 100 105 |
| | | | | | |110 115 120 |
|MACLIB | F 80 | 72 | OFF | U R| ON |see ASSEMBLE |
|MACRO | F 80 | 72 | OFF | U R| ON |see ASSEMBLE |
| |MEMO | V 80 | 80 | WORD| M R| OFF |see LISTING |
| |MODULE | V 80 | 80 | WORD| M R| OFF |see LISTING |
| |NAMES | V 255| 255 | OFF | M R| OFF |see LISTING |
| |NETLOG | V 255| 255 | OFF | M R| OFF |see LISTING |
| |NOTE | V 132| 132 | WORD| M R| OFF |see LISTING |
| |NOTEBOOK| V 132| 132 | WORD| M R| OFF |see LISTING |
| |PASCAL | V 72 | 72 | OFF | U R| OFF |see DIRECT |
|PLI | F 80 | 72 | OFF | U R| ON |2 4 7 10 13 16 19 22 25 |
| | | | | | |31 37 43 49 55 79 80 |
|PLIOPT | F 80 | 72 | OFF | U R| ON |see PLI |
+--------------------------------------------------------------------+
XEDIT Reference
+--------------------------------------------------------------------+
|Filetype|Format|TRUNC|SPILL|CASE|SERIAL|SET TABS Columns |
|--------|------|-----|-----|----|------|----------------------------|
| |SAS | F 80 | 80 | OFF | M R| OFF |see DIRECT |
|SCRIPT | V 80 | 80 | WORD| M R| OFF |see LISTING |
|SYNONYM | F 80 | 80 | OFF | U R| OFF |see CNTRL |
| |TEXT | F 80 | 80 | OFF | U R| OFF |see CNTRL |
|UPDATE | F 80 | 72 | OFF | U R| ON |see ASSEMBLE |
|UPDT | F 80 | 72 | OFF | U R| ON |see ASSEMBLE |
|VSBASIC | F 80 | 80 | OFF | U R| OFF |see BASIC |
|VSBDATA | V 132| 132 | OFF | U R| OFF |see LISTING |
| |WATFIV | F 80 | 80 | OFF | U R| OFF |see FORTRAN |
|WBASIC | V 80 | 80 | OFF | U R| OFF |see BASIC |
|XEDIT | V 80 | 80 | OFF | U R| OFF |see EXEC |
|other | V 80 | 80 | OFF | U R| OFF |see LISTING |
+--------------------------------------------------------------------+
XEDIT Reference
INDEX
-&- CMSG, 11
&, 9 COLOR, 21
COLPTR, 21
-/- column pointer, 9
/, 31 column targets, 9
COMMAND, 11
-?- COMPRESS, 11
?, 9, 31 COPY, 11
COUNT, 11
-=- COVERLAY, 12
=, 9, 20 CP, 12
CREPLACE, 12
-"- CTL, 3
", 31 CTLCHAR, 21
"", 31 CURLINE, 21
current line, 8
-A- cursor, 6, 12
A, 31
ADD, 10 -D-
ALL, 10 D, 32
ALT, 20 DBLANK, 12
ALTER, 10 DD, 32
alteration count, 5 DEL, 7
APL, 20 delete, 7, 12
ARBCHAR, 20 DISPLAY, 21
AUTOSAVE, 20 display mode, 4
DOWN, 12
-B- DUP key, 7
BACKWARD, 10 DUPLICATE, 12
BOTTOM, 10
break key, 24 -E-
BURN, 10 E, 32
editor, 2
-C- EMSG, 12
C, 32 ENTER, 21
CANCEL, 10 ENTER key, 6
CAPPEND, 10 ERASE EOF key, 6
CASE, 20 ERASE INPUT key, 6
CC, 32 ESCAPE, 22
CDELETE, 10 EXPAND, 12
CFIRST, 10 EXPLAIN, 13
CHANGE, 11 EXTRACT, 13
CINSERT, 11
CLAST, 11 -F-
CLEAR key, 6 F, 32
CLOCATE, 11 FFILE, 13
CMDLINE, 21 FIELD MARK key, 7
CMS, 11 field separator, 7
Index 39
XEDIT Reference
FILE, 13 MERGE, 16
FILLER, 22 MM, 32
FIND, 13 MODIFY, 16
FINDUP, 13 MOVE, 16
FLOW, 13 MSG, 16
FMODE, 22 MSGLINE, 23
FNAME, 22 MSGMODE, 23
FORWARD, 13
FTYPE, 22 -N-
FULLREAD, 22 new line, 7
FUP, 13 NEXT, 16
NFIND, 16
-G- NFINDUP, 16
GET, 14 NFUP, 16
NONDISP, 24
-H- NOSEQ8, 3
HELP, 14 NOUPDATE, 3
HEX, 22 NULLS, 24
HEXTYPE, 14 NUMBER, 24
highlighting, 21
-O-
-I- OS data sets, 2, 35
I, 32 OSXEDIT, 2
IMAGE, 22 OVERLAY, 16
IMPCMSCP, 22
INLONG, 14 -P-
INPUT, 15 P, 32
INS MODE, 7 PA keys, 24
insert mode, 7 PACK, 24
packed files, 24, 35
-J- PAn, 24
JOIN, 15 PARSE, 17
JUSTIFY, 15 PA1 key, 6
PA2 key, 6
-K- PEEK, 2
keyboard, 6 PENDING, 24
PF, 24
-L- PF keys, 7, 24
LASTLORC, 22 PFILE, 17
LEFT, 15 POINT, 25
line mode, 4 POWERINP, 17
LINEND, 23 PQUIT, 17
LOAD, 15 PREFIX, 25, 31
LOCATE, 15 prefix subcommands, 8, 16
long input, 14 PRESERVE, 17
LOWERCASE, 16 PROFILE, 4
LPREFIX, 16 PROFILE EXEC, 13
LRECL, 23 PROFILE XEDIT, 32
program attention keys, 24
-M- program function keys, 7, 24
M, 32 PSAVE, 17
MACRO, 16, 23, 32 PURGE, 17
macros, 35 PUT, 17
MASK, 23 PUTD, 18
Index 40
XEDIT Reference
-Q- STAY, 27
QQUIT, 18 STREAM, 27
QUERY, 18 SYNONYM, 27
QUIT, 18 System Product Editor, 2
S3270, 22
-R-
RANGE, 25 -T-
RBLANK, 18 TABL, 32
READ, 18 TABLINE, 27
recall, 9 TABS, 28
RECFM, 25 targets, 9
record separator, 7 TERMINAL, 28
RECOVER, 18 TEXT, 28
REMOTE, 25 TOFEOF, 28
RENUM, 18 TOP, 30
REPEAT, 19 TRANSFER, 30
REPLACE, 19 TRANSLAT, 28
RESERVED, 26 TRUNC, 28
RESET, 7, 19 TYPE, 30
RESTORE, 19 typewriter mode, 4
retain, 9
reuse, 9 -U-
RGTLEFT, 19 UP, 30
RIGHT, 19 UPDATE, 4
RINPUT, 19 UPPERCASE, 30
RXEDIT, 2
-V-
-S- VARBLANK, 28
S, 32 VERIFY, 28
SAVE, 19
SCALE, 26, 32 -W-
SCHANGE, 20 WIDTH, 4
SCREEN, 26 WRAP, 29
SCRIPT, 13
SELECT, 26 -X-
SEQ8, 4 X, 32
SERIAL, 26 XEDIT, 31
SET, 20 XEDIT macros, 35
SET =, 20
SET EMSG, 23 -Z-
SHADOW, 26 ZONE, 29
SHIFT, 29
SIDCODE, 4, 26 -3-
SORT, 29 3270 simulator, 22
SOS, 29
SPAN, 27
SPELL, 29
SPELLFIX, 29
SPILL, 27
SPLIT, 30
SPLTJOIN, 30
SSAVE, 30
STACK, 30
STATUS, 30
Index 41