The following PROC processor commands are available.
+ command The + command adds the specified integer number to the current value of the currently active input buffer.
- command The - command subtracts the specified integer number from the current value of the currently active input buffer.
a command (PROC processor) The a command appends the string in the specified input buffer position to the currently active output buffer.
b command (PROC processor) The b command decrements (moves the pointer back) the currently active input buffer pointer by one ’word’ position.
c command (PROC processor) The c command indicates a remark command. All text that follows on the same line is ignored by the PROC interpreter.
d command (PROC processor) The d command displays either a specific position from the currently active input buffer, or all the positions.
f command (PROC processor) The f command increments (moves the pointer forward) the currently active input buffer pointer by 1. If the pointer is at the end of the buffer, this command has no effect.
go command The go command transfers program control to another Proc statement which starts with a statement label. The second form is an indirect transfer, according to the value of the label, as extracted from a parameter in the input buffer.
h command The h command moves a literal string of characters to the currently active output buffer.
if command The if command performs a conditional expression.
ih command The ih command removes the current parameter from the currently active input buffer and replaces it with a null value or the specified string.
in command The in command prompts for input from the terminal and places it in the secondary input buffer. Contents of the secondary input buffer are destroyed and the buffer pointer is set to the beginning, prior to placing data in the buffer. Leading and trailing blanks are removed and embedded blanks are replaced with a single attribute mark.
ip command The ip command stops execution of the Proc and awaits a response from the keyboard.
is command The is command temporarily stops execution of the Proc until a response is provided from the keyboard. Input is placed into the secondary input buffer. Any existing data at that location is overwritten. If the pointer is already at the end of the buffer, the input is appended to the end. The colon is the default prompt character.
it command The it command inputs data from the tape label of the currently attached magnetic media directly into the primary input buffer. The input buffer is cleared before the label is copied into it. If there is no label, the input buffer is cleared anyway. Note that the tape device must be attached.
o command (PROC processor) The o command outputs literal text to the terminal at the next available line.
p command (PROC processor) The p command processes the commands in the currently active output buffers. The primary output buffer is processed first, followed by the secondary output buffer. Both the primary and secondary output buffers are automatically reset after the p command, and the active buffer pointer is reset to point to the primary output buffer.
ri command The ri command resets either the entire Proc input buffer, or all of the locations following a specified location, and resets both input buffers to null.
ro command The ro command resets both of the output buffers. There is rarely a case where this is ever required.
s command (PROC processor) The s command sets the input pointer to a specified position number, activating the specified parameter number as the currently active input buffer location.
sp command The sp command selects the primary input buffer, and positions the pointer to the beginning of the input buffer.
ss command The ss command selects the secondary input buffer and positions the pointer to the beginning of the secondary input buffer.
st command The st command selects and directs output either to the primary output buffer (turns off the stack) or to the secondary output buffer (turns on the stack). When the stack is off, all data picked up by the a command is put in the primary output buffer. When the stack is on, the data is put in the secondary output buffer.
t command (PROC processor) The t command directs output to the terminal screen and controls special terminal display functions.