Update Processor
Previous Topic  Next Topic 

Using the Update Processor


There are occasions when you will need to use the update processor to edit or view data or programs.  Always use extreme caution when using, as accidentally changing something may have dire consequences.  To update (edit) an item, the format is:


U filename item-id


Example:

U MD USER-COLDSTART   (MD is the filename, and USER-COLDSTART is the item-id)


Here are some helpful commands while in the update processor.  Arrow keys, paging, insert, delete, home, and end keys do not work in the update processor.  Do not try them, as they will cause unusual things to happen, and could result in accidental loss of data.


Ctrl-p                Page forward

Ctrl-z                Multiple uses:

       Y                Page backward

       Number                Go to Line Number

       E                Go to end of item

       Z                Undo last delete, if this was last action taken

Ctrl-f                Go to beginning of next line, first character of data

Enter                Go to first position of next line

Ctrl-d                Go back one line, if cursor on first character of line

               Go to beginning of line, if cursor elsewhere on that line

Ctrl-k                Go right one character

Ctrl-j                Go left one character

Ctrl-u                Go right one word

Ctrl-y                Go left one word

Ctrl-g                Go to the end of the line, if cursor not at the end of the line

               Go to the end of the next line, if cursor on the end of a line

Ctrl-t                Go to top of item


Ctrl-a                Search for string, or use in conjunction with ctrl-r as below

       Ctrl-r        After ctrl-a, and entering string, you can specify a replacement for that string if necessary

Once in the search and replace mode, as each occurrence of the string is found, the following options apply:

Ctrl-a        Search for next occurrence

Ctrl-r        Replace

Ctrl-n        Replace all occurrences (Dangerous)

Ctrl-x        Exit search and replace mode


Ctrl-r                Toggles insert/overstrike mode (See top right corner of screen: I or O)

Ctrl-w                Insert one space

Ctrl-l                Delete one character

Ctrl-o                Delete one word

Ctrl-e                Delete to end of line from cursor position


Ctrl-c                (Cut and Copy) Multiple uses:

       L        Mark beginning of cut, indicated to leave what will be cut

       D        Mark beginning of cut, indicating to delete what will be cut

       C        Mark end of cut

       P        Paste cut

       W        Write code marked to another file and/or item

       R        Read code from another file and/or item (include starting and ending line number)

               Example: Paste from: (AR.PGM  CUSTOMER.ENTRY  120  200

               This would paste line 120 to 200 from customer entry program into your item.


Ctrl-x                (Exiting) Multiple uses:

       X        Do not save item (Use if you totally lose control while editing)

       F        File (save) item

       C        Save, Compile and Catalog item

       P        Save and Print item to last sp-assigned printer

       R        Save, Compile, and Run item

       O        Delete item (Please be careful not to do this by accident)

       I        Save and rename item, and/or save in another file