HP 3000 Manuals

Set Options [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Set Options 

Purpose 

Alters one or more editing parameters.

Default Syntax 

O

Description 

This command accesses the Set Options screen, which enables you to alter
the default settings of one or more of the 21 editing parameters.

Command Process 

HP EDIT suspends the current editing session and displays the options
screen.  You can alter the value of an option by pressing the letter key
preceding the option.  The resulting action depends on the type of option
specified.  Pressing the letter may either:

   *   Toggle between yes/no options
   *   Erase a numeric value and prompt for a new value
   *   Sequence through several choices as the key is pressed repeatedly

After you have altered a particular option, you can exit the screen to
return to the editing session, or you can alter additional options.  The
alterations are effective only during the current editing session.

Saving Changes Permanently 

To save the altered option values for another editing session, you must
use the Save Config File command to save the changes to the HP EDIT
default configuration file named EDCONFIG, or you must save the changes
to another file name.

If you save the changes to the EDCONFIG file, each subsequent session
automatically reads in EDCONFIG and the altered values.  If you save the
changes to another file name, you must read in the configuration with the
Load Config File command whenever you initiate a new session and want to
use the configuration.

Refer to the Save Config File and Load Config File commands for detailed
information about using these commands.

Getting Help 

When you have accessed the options screen, you can obtain help on any
option by pressing the ?  key.  Refer to the Procedures section for
instructions about getting help.

Option Definitions 

Figure 4-22 shows the screen that appears when you execute the Set
Options command.  The remainder of this section provides a description
for each parameter.

[REV BEG]

[]
Set Options Screen [REV END] * Auto indent Default value = No If yes, indents each text input line to align to the first non-blank character of the previous line. For instance, if you use the space bar to move to the fifth column of a new line and then begin entering text, HP EDIT indents subsequent lines entered to the fifth column. * Automatic bumping Default value = No If yes, HP EDIT automatically renumbers a minimum number of lines to accommodate line insertions that would disrupt the line numbering sequence for COBOL-numbered and standard-numbered files. HP EDIT indicates when it has renumbered lines by displaying a message. If no, HP EDIT prompts for permission to renumber the lines. * Capitalize input Default value = No If yes, HP EDIT upshifts all lowercase characters you type in Text Entry mode. It also upshifts all characters you type in response to prompts. * Delete control chars Default value = No If yes, HP EDIT does not add control characters you type into text. This includes control characters entered in Text Entry mode and those typed in response to prompts. * Display line numbers Default value = No If yes, HP EDIT displays line numbers if the current file is numbered. Reading in a COBOL file automatically changes the value to yes. * Highlight match Default value = Yes If no, HP EDIT does not highlight text found during searches in reverse video. * Ignore case [REV BEG] Default value = Yes[REV END] If yes, HP EDIT does not differentiate between upper and lower case characters when performing searches. Consequently, HP EDIT searches for and matches specified alphabetic characters regardless of whether the characters are uppercase or lowercase. For instance, if you type the letter a, HP EDIT matches occurrences of A and a. A no value for the Pattern-matching characters option overrides a yes value for this option. [REV BEG][REV END] * Pattern-matching chars Default value = Yes If yes, you can specify special characters for matching purposes during HP EDIT searches. Refer to the Define Search Pattern command for a complete list of pattern-matching characters. If no, HP EDIT interprets a search pattern literally. This value also overrides the Ignore Case option with a yes value, so that searches are case dependent. * Renumber lines Default value = No If yes, HP EDIT renumbers all lines when you execute the Keep Text command by assigning 1.000 to the first line and incrementing each subsequent line by 1 (0.1 for COBOL files). If the file exceeds the size limitation for this numbering scheme, HP EDIT employs an alternate numbering scheme using smaller increments. HP EDIT only renumbers the saved text. The line numbers you edit in the text are not affected. To incorporate the new numbers in your text, you must read the file in again with the Text File command. [REV BEG][REV END] * Autokeep interval Default value = 0 If zero, disables the automatic keep feature. If between 1 and 10000, HP EDIT automatically keeps the file whenever you execute this number of text-altering commands since the last automatic keep. [REV BEG] * Forward/back scroll size Default value = 20[REV END] HP EDIT moves the text this number of lines up when you execute the Scroll Forward command and moves the text this number of lines down when you execute the Scroll Backward command. You can also reset the scrollsize by preceding one of the scroll commands with a count. [REV BEG] * Left/right scroll size Default value = 60 When you press g you can change the left/right scroll size to any number between 1 and 1024. [REV END][REV BEG] * Right margin Default value = The record length of the file.[REV END] HP EDIT sets the right margin at this variable value for join operations with the Join Lines and Join Lines And Justify commands, and for justification with the Right Justify Line command. [REV BEG] The right margin consists of the record length for COBOL and unnumbered files with fixed-length records. For standard-numbered files, it consists of the record length minus eight. Empty files default to 80 if unnumbered, 72 if standard-numbered, and 80 if COBOL-numbered.[REV END] * Shift count Default value = 1 HP EDIT moves texton a line by this number of characters when you execute one ofthe shift commands. The maximum value is 80. * Tab spacing Default value = 5 HP EDIT moves the cursor this number of characters to the right when you press the Tab key. HP EDIT preempts any hardware terminal tabs that may have been set. * Keep file type Default value = None HP EDIT automatically keeps the current file in its present state as unnumbered, standard numbered, COBOL numbered, or variable. You can alter this option to suit your needs if you want to keep the current file in another format. For instance, if you were editing a standard numbered file and wanted to keep it as an unnumbered file, you would specify unnumbered as the setting for this option. If unnumbered, HP EDIT keeps the file as one with fixed length records and no line numbers. If standard numbered, HP EDIT keeps the file as a numbered file with fixed length records, which contain line numbers in the last eight columns. If COBOL numbered, HP EDIT keeps the file as a source file containing COBOL language statements (EDTCT file type), in which columns 1 through 6 are reserved for sequence numbers. If variable, HP EDIT keeps the file as one with variable length records. * New file type Default value = Unnumbered When you specify a file that does not currently exist, HP EDIT considers it a new file. The value of this option represents the file type for editing and saving purposes. If unnumbered, HP EDIT considers the new file as one that contains fixed-length records and no line numbers. If COBOL numbered, HP EDIT considers the new file as a source file containing COBOL language statements (EDTCT file type), in which columns 1 through 6 are reserved for sequence numbers. If variable, HP EDIT considers the new file as one that contains variable-length records. If standard-numbered, HP EDIT considers the new file as a numbered file that contains fixed-length records, in which the last eight columns are reserved for line numbers. [REV BEG] * Use function keys Default = Yes, save Pressing u takes you through three values for the Use function keys option. The options are: Yes, save puts HP EDIT's labels on the screen and saves the user function keys. When you exit, HP EDIT restores the user function key labels. Yes, replace puts HP EDIT's labels on the screen but does not save the user function keys. No removes function keys from the screen. [REV END] * Word category Default value = [a-zA-Z0-9_'-] If the default value, HP EDIT considers words to consist of upper and lowercase letters, digits, underscores, apostrophes, and hyphens. Words are separated by spaces and any non-alphanumeric characters besides the underscore, apostrophe, and hyphen. If [a-zA-Z0-9_], words consist of upper and lowercase letters, digits, and underscores. Words are separated by spaces and any non-alphanumeric characters besides the underscore. If [a-zA-Z0-9], words consist of upper and lowercase letters as well as digits. Words are separated by spaces and any non-alphanumeric characters. If [~ ], words consist of any non-space characters separated by spaces. [REV BEG] * Text entry exit key Default = / If you want a text entry exit key other than /, press e. The / character is erased from the screen and HP EDIT prompts you for a new text entry exit key. If you press Return after pressing e, the old value of / returns. [REV END] * File path Default = "" When you press q the current path prints two lines below the prompt on the options screen. You can type in the new path, you can press Return to preserve the current file path, or you can enter two double quotes to erase the current file path. Once you set the file path, each time you create a file with the Text File or Join File commands, the extension will be the group name you specify on the Set Options screen. Procedure To use the Set Options help facility: 1. Press the O key, or press the MPE and Options function key, followed by the Set Options function key. HP EDIT suspends the editing session and displays the options screen. 2. Press the ? key. HP EDIT displays the message Help on which option? at the bottom of the screen. 3. Press the key preceding the option for which you want to obtain information. HP EDIT provides a brief description of the specified option. To display the options screen and alter options: 1. Press the O key, or press the MPE and Options function key, followed by the Set Options function key. HP EDIT suspends the editing session and displays the options screen. 2. Alter an option by pressing the key preceding the option to be changed. If you press one of the keys associated with an option in the left column, HP EDIT toggles from no to yes or from yes to no. If you press one of the keys associated with an option in the right column, HP EDIT either erases a numeric value and prompts for a new value, or displays another option choice. 3. After you have either toggled to the desired setting, specified the desired numeric value, or repeatedly pressed the key to sequence to the desired value, press Return. HP EDIT saves the changed values and returns to the editing session. Examples To change the Auto indent option to YES: 1. Press the O key, or press the MPE and Options function key, followed by the Set Options function key. HP EDIT displays the options screen. 2. Press the a key, which represents the Auto Indent option. HP EDIT changes the value from no to yes as shown: [a] Auto indent: Yes 3. Press Return to return to the editing session. To change tab spacing from 5 to 10: 1. Press the O key, or press the MPE and Options function key, followed by the Set Options function key. HP EDIT displays the options screen. The tab spacing option appears as shown: [t] Tab spacing: 5 2. Press the t key, which represents the tab spacing option. HP EDIT erases the numeric value and moves the cursor beside the option as shown: [t] Tab spacing: _ 3. Type the number 10 and press Return. HP EDIT saves this number as the new value as shown: [t] Tab spacing: 10 If you decide not to change the tab spacing, you could simply press Return to abort the process and retain the original tab spacing of 5. 4. Press Return to return to the editing session. To change the new file type from unnumbered to COBOL numbered: 1. Press the O key, or press the MPE and Options function key, followed by the Set Options function key. HP EDIT displays the options screen. The new file type option appears as shown: [n] New file type: Unnumbered 2. Press the n key, which represents the new file type option. HP EDIT changes the option value to the next value in the sequence of four choices, which is COBOL numbered as shown: [n] New file type: Cobol Numbered 3. Press Return to return to the editing session. Related Commands None


MPE/iX 5.0 Documentation