Descriptions of the following Primary Commands are contained in this section:  





Note:  You can create your own primary-like commands by using the Command Macro facility. You store a series of primary commands in a file and perform them by typing the Macro name. A Command Macro command is entered on the command line just like a built-in primary command. See Macro Support for more information.  


Command

Action

FM Mode

Edit Mode

ACTION

Request automatic SAVE be performed

ACTION

ADD

Add a text line

ADD

ALIGN

Align string on a column Boundary

ALIGN

APPEND

Add text to end of lines 

APPEND

AUTOBKUP

Control backup creation

AUTOBKUP

AUTOCAPS

Control auto-capitalization of language keywords

AUTOCAPS

AUTONAME

Specify an alternate AUTO file name

AUTONAME

AUTOSAVE

Control automatic file save defaults

AUTOSAVE

BACKUP

Request a Backup of the current file

BACKUP

BOM

Set BOM writing ON / OFF

BOM

BOTTOM

Scroll to bottom 

BOTTOM

BOTTOM

BOUNDS

Set edit boundaries

BOUNDS

BROWSE

Open a file for browse (read-only) access

BROWSE

BROWSE

BUILTIN

Trailing command is a normal internal cm

BUILTIN

BUILTIN

CANCEL

Cancel edit session without file save

CANCEL

CAPS

Set keyboard CAPS mode

CAPS

CASE

Control default literal case handling

CASE

CHANGE

Change a data string

CHANGE

CLIP

Open a new tab using clipboard data 

CLIP

CLIP

CLONE

Open an un-named edit using an existing file

CLONE

CLONE

CLS

Clear or Close the SPFLite Debug Window

CLS

CLS

CMD

Execute another Program or Command

CMD

CMD

COLLATE

Specify display/sort collating sequence

COLLATE

COLS

Control visibility of top Columns line

COLS

COMPRESS

Compress duplicate strings

COMPRESS

COPY

Include an external file

COPY

CREATE

Create an external file

CREATE

CRETRIEV

Conditional Retrieve  

CRETRIEV

CRETRIEV

CUT

Cut data to the clipboard

CUT

DCB

Specify file characteristics

DCB

DELETE

Delete selected lines 

DELETE

DIFF

Do a DIFF compare between two files

DIFF

DIFF

DIR

Open folder holding this file in FM

DIR

DO

Execute the contents of a DO file

DO

DO

DOWN

Scroll downward in the data 

DOWN

DOWN

EDIT

Open a file for editing  

EDIT

EDIT

EFT

Edit the Extended File Type Criteria

EFT

EFT

END

End the edit session / FM Display

END

END

ENUMWITH

Set Increment for Enumerate Functions

ENUMWITH

EOL

Specify EOL. Deprecated - Use DCB.

DCB

EXCLUDE

Exclude lines from display  (Edit mode)

EXCLUDE

EXCLUDE

EXIT

Terminate SPFLite session

EXIT

EXIT

FAVORITE

Add current file to a Favorite list

FAVORITE

FF

Find in Files

FF

FF

FIND

Find a character string

FIND

FIND

FLIP

Reverse exclusion status of lines  

FLIP

GLUEWITH

Set join string for Glue operations

GLUEWITH

HELP

Display the Help file  

HELP

HELP

HEX

Set HEX display mode ON or OFF

HEX

HIDE

Hide excluded lines

HIDE

HILITE

Control text highlighting options

HILITE

IEDIT

Edit INCLUDEd files in a MEDIT session

IEDIT

IEDIT

IMACRO

Specify a macro to be run after file load

IMACRO

JOIN

Join lines using Find / Change strings

JOIN

KEYMAP

Display keyboard settings dialog

KEYMAP

KEYMAP

LABEL

Search for a line and add a Line Label

KEYMAP

LC

Lower-case a range of lines

LC

LEFT

Scroll leftward in the data  

LEFT

LEFT

LOCATE

Scroll the display to a specified line

LOCATE

LOCATE

LOOPCHECK

Turn loop detection ON or OFF

LOOPCHECK

LOOPCHECK

LRECL

Set LRECL. Deprecated - Use DCB.

DCB

MACLIB

Set a unique Macro library for a Profile

MACLIB

MAKELIST

Create a FILELIST from current display

MAKELIST

MAKELIST

MARK

Turn MARK lines ON or OFF

MARK

MEDIT

Add a file to a Multi-Edit session

MEDIT

MEDIT

MODE

Specify and set the session Edit mode

MODE

NDELETE

Delete lines where string is not found

NDELETE

NFIND

Negative Find lines

NFIND

NFLIP

Negative Flip lines

NFLIP

NEXCLUDE

Negative Exclude lines

NEXCLUDE

NREVERT

Negative Revert lines

NREVERT

NSHOW

Negative Show lines

NSHOW

NULINE

Negative Mark User lines

NULINE

OPEN

Edit another file in a new session

OPEN

OPEN

OPTIONS

Set editor global options

OPTIONS

OPTIONS

PAGE

Set Profile PAGE mode ON or OFF

PAGE

PASTE

Paste data from the clipboard  

PASTE

PREPEND

Add text to the beginning of line(s)

PREPEND

PRESERVE

Control handling of trailing blanks

PRESERVE

PRINT

Send selected lines to the printer

PRINT

PRINT

PROFILE

Display current file profile values

PROFILE

PROFILE

PTYPE

Enter PowerType mode

PTYPE

RCHANGE

Repeat change

RCHANGE

RECALL

Recall (Open) a favorite FILELIST

RECALL

RECALL

RECFM

Set RECFM. Deprecated - Use DCB.

DCB

REDO

Redo an UNDO action

REDO

RELOAD

Reload current edit file from disk

RELOAD

RENAME

Rename the current edit file

RENAME

REPLACE

Replace a file

REPLACE

RESET

Reset (Edit mode)

RESET

RESET

RETF

Recall commands (forward direction)

RETF

RETF

RETRIEVE

Recall previous commands

RETRIEVE

RETRIEVE

REVERT

Revert User line status

REVERT

RFIND

Repeat the find command

RFIND

RFIND

RIGHT

Scroll rightward in the data  

RIGHT

RIGHT

RLOC

Repeat last LOCATE command

RLOC

RLOC

RLOCFIND

Repeat FIND or LOCATE command

RLOCFIND

RLOCFIND

RUN

Execute the current Edit script

RUN

SAVE

Save data and continue edit

SAVE

SAVEALL

Save all current tabs

SAVEALL

SAVEALL

SAVEAS

Save as a new file and switch to it

SAVEAS

SC

Sentence-case a range of lines

SC

SET

Set a command variable

SET

SET

SHOW

Show lines where a string is found

SHOW

SORT

Sort the edit data

SORT

SOURCE

Specify character encoding

SOURCE

SPELL

Spell check the file

SPELL

SPLIT

Split lines using Find / Change strings

SPLIT

START

Set initial file position option.

START

STATE

Control edit state saving

STATE

SUBARG

Set default SUBMIT arguments

SUBARG

SUBCMD

Set alternate command for SUBMIT

SUBCMD

SUBMIT

Pass lines to an external command file

SUBMIT

SWAP

Switch to Previous or Next Tab

SWAP

SWAP

TABS

Turn TABS on or off  

TABS

TAG

Alter TAG status of a selection of lines

TAG

TC

Title-case a range of lines

TC

TOP

Scroll to the top of the file

TOP

TOP

UC

Upper-case a range of lines

UC

ULINE

Mark lines as User lines

ULINE

UNDO

Undo changes

UNDO

UP

Scroll upward in the data

UP

UP

VIEW

View a file in read-only mode.

VIEW

VIEW

WDIR

Open Win. Explorer for this file folder.

WDIR

WDIR

XFORM

Set macro to handle external file I/O

XFORM

XSUBMIT

Submit an external file

XSUBMIT

XSUBMIT

XTABS

Control handling of incoming tabs

XTABS