Previous Topic: Top-line CommandsNext Topic: Program Function Keys Assigned to Operations


Line Commands

Line commands, also called text-editing commands, are used to copy, delete, move, and repeat lines or blocks of lines within a work file.

How to Enter a Line Command

A line command consists of a one- to three-character value followed by a space.

These commands must begin with the escape character (%) which signals to the text editor that the line contains a command. Enter a command in column 1 of the line to which it applies, and end the command with a space. For detailed information on using line commands, refer to the CA IDMS Common Facilities Guide manual. Line commands are listed in the following table. Note that:

Operation

Command format

After

%A (space)

Before

%B (space)

Copy

Copy a single line:

  • %Cn (space)

Copy a block of lines:

  • %CB (space) (on the first line of the block)
  • %CE (space) (on the last line of the block)

Delete

Delete a single line:

  • %Dn (space)

Delete a block of lines:

  • %DB (space) (on the first line of the block)
  • %DE (space) (on the last line of the block)

Move

Move a single line:

  • %Mn (space)

Move a block of lines:

  • %MB (space) (on the first line of the block)
  • %ME (space) (on the last line of the block)

Repeat

Repeat a single line:

  • %Rn (space)

Repeat a block of lines:

  • %RB (space) (on the first line of the block)
  • %RE (space) (on the last line of the block)