Online Commands
The commands that direct an online session of the DDDL compiler and manipulate the contents of the work file fall into two categories.
idmscu
The commands that direct an online session of the DDDL compiler and manipulate the contents of the work file fall into two categories:
- Top-line commands
- Line (or text-editing) commands
These commands are listed and described in the following two subsections.
For a list of program function (PF) keys you can use as alternatives to top-line commands, see Program Function Keys Assigned to Operations, later in this section.
For detailed information on using top-line commands, line commands, and PF keys, refer to the
CA IDMS Common Administrating section
manual.Top-line Commands
Top-line commands are used to direct an online DDDL compiler session. The user enters top-line commands in the
command area
of the screen.The top-line commands described in the following table are available for use with the online DDDL compiler. Note that all commands, with the exception of RESHOW, update both the screen and the work file.
Top-line command
| Description
|
APPLY | Updates the screen and work file but does not execute the DDDL compiler. |
CLEAR | Deletes all data contained in the work file. |
DISPLAY LINE | Displays a page of the work file, starting with the specified line. |
DISPLAY PAGE | Displays the requested page from the work file. |
END | Immediately terminates the current session. |
ENTER | Sets the ENTER key to execute the APPLY or the UPDATE command (described below). |
ESCAPE | Establishes the escape character that must be used with line commands. |
FIND | Locates a character string by searching forward or backward in the work file. |
HELP | Lists each top-line command and the PF key currently assigned to execute that command. |
INSERT | Inserts lines into the work file after the line at which the cursor is positioned. |
PRINT (DC/UCF only) | Prints the contents of the work file. |
REPEAT | Repeats the line at which the cursor is positioned. |
RESHOW | Cancels all changes made to the current screen and redisplays the previous screen. |
SUSPEND | Suspends the current session and returns control to the host TP monitor. |
SWAP | Restores the screen and the work file to their condition prior to the last execution of the compiler. |
SWITCH (only if the DDDL compiler is executing under the control of the Transfer Control Facility) | Suspends the session and transfers control to the specified online CA IDMS component or to the transfer control facility Selection screen. |
UPDATE | Updates the work file and executes the DDDL compiler. |
Abbreviating Top-line Commands
You can abbreviate top-line commands to a minimum of three characters, except for:
- FIND which can be abbreviated to F
- PRIOR which can be abbreviated to PRIO (four characters distinguish it from the keyword PRINT)
To enter a top-line command, either type the command on the top line of the screen and press ENTER or use the program function (PF) key assigned to the desired function (see 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 Administrating section
manual. Line commands are listed in the following table. Note that:- The percent sign (%) is the default escape character.
- nrepresents the number of lines (including the current and subsequent lines) to which the operation applies.
- The(space)represents the mandatory space that must follow each line command.
Operation
| Command format
|
After
| %A (space) |
Before
| %B (space) |
Copy
| Copy a single line: %C n (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: %D n (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: %M n (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: %R n (space)Repeat a block of lines: %RB (space) (on the first line of the block) %RE (space) (on the last line of the block) |