Proc Command [P]

Qedit 5.7 for HP-UX

Home Previous Next


Proc Command [P]

Calls internal procedures to downshift and upshift lines.

PROC[ DOWN | UP ] [ rangelist ]

(Defaults: previous proc)

For DOWN and UP, the default rangelist is the current line (*); PQ shifts quietly (i.e., without printing the lines); and PJ shifts with user verification (i.e., PJ prints each shifted line and asks you to approve it).

Built-In PROCs to Shift Up or Down

The Up and Down Procedures put Roman-8 characters into uppercase or lowercase if Set Editinput Extend is On. Otherwise, they only operate on A-Z and a-z.

The first time that you use Down or Up after running Qedit, they ask you to configure them. There are 4 options: 1 means to shift every alpha character in the lines, 2 means to skip over characters enclosed in double quotes ("), 3 means to skip over characters enclosed in single quotes ('), and 4 means to skip over characters enclosed in either double quotes or single quotes. If Down (or Up) finds a line with unmatched quotes, it prints a warning and stops (unless the lines are part of a COBOL program, in which case unmatched quotes are okay).

/open qedit.doc         {open document file}
/list 415.1             {display a line}
  415.1   You will need to Purge the old file.
/proc down 415.1        {try it lowercase}
Set Shift DOWN?  1(@) 2(") 3(') 4(" or ')  [0]:2
  415.1   you will need to purge the old file.
/proc up 415.1          {try it uppercase}
Set Shift UP?  1(@) 2(") 3(') 4(" or ')  [0]:2
  415.1   YOU WILL NEED TO PURGE THE OLD FILE.
/proc down              {lowercase is better}
/proc 410/415           {downshift some more lines}
/pq 420/1002            {many more! quietly}
/pj up 1003             {upshift with approval}
 1003     >GET D-LINE (Okay?) yes

If you always configure the shifting routines to the same option (e.g., skip strings with double quotes), you can use Set Shift to define the configuration:

/set shift down 2 up 2


Home Previous Next